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:
https://github.com/cloudflare/cloudflare-rs/blob/b4fa5ef8bb48415c54974ee3ed11cf9d8397d98b/cloudflare/src/endpoints/zone.rs#L111-L114
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