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"
    },


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 },
}


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
Interact with Cloudflare's products and services via the Cloudflare API
GitHub
Rust library for the Cloudflare v4 API. Contribute to cloudflare/cloudflare-rs development by creating an account on GitHub.
Was this page helpful?