Thoumas
Thoumas
CDCloudflare Developers
Created by Thoumas on 1/18/2024 in #general-help
Bug in flarectl, Cloudflare API docs, cloudflare-go and cloudflare-rs
https://developers.cloudflare.com/api/operations/zones-get Owner should always have email, id and type as strings, however my response was:
"owner": {
"email": null,
"id": null,
"type": "user"
},
"owner": {
"email": null,
"id": null,
"type": "user"
},
https://github.com/cloudflare/cloudflare-rs/blob/b4fa5ef8bb48415c54974ee3ed11cf9d8397d98b/cloudflare/src/endpoints/zone.rs#L111-L114
pub enum Owner {
User { id: String, email: String },
Organization { id: String, name: String },
}
pub enum Owner {
User { id: String, email: String },
Organization { id: String, name: String },
}
Rust API says that owner is either "user" (with id and email, both of which are always present) or "organization" (with id and name, both of which are always present). According to the api docs, email should never be present
12 replies