Skip to content

Commit

Permalink
As discussed in cloudflare#236,
Browse files Browse the repository at this point in the history
this field seems to have been removed from the cloudflare API.

To ensure clients can still connect to the API, this patch
removes this field from the API entry
  • Loading branch information
maxhoesel committed Jun 9, 2024
1 parent 6188c63 commit f0311d2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cloudflare/src/endpoints/zone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,14 @@ pub enum Status {
#[derive(Deserialize, Debug)]
#[serde(rename_all = "lowercase", tag = "type")]
pub enum Owner {
User { id: Option<String>, email: Option<String> },
Organization { id: Option<String>, name: Option<String> },
User {
id: Option<String>,
email: Option<String>,
},
Organization {
id: Option<String>,
name: Option<String>,
},
}

#[derive(Serialize, Deserialize, Debug, Clone)]
Expand All @@ -136,8 +142,6 @@ pub struct Meta {
pub page_rule_quota: u32,
/// Indicates if URLs on the zone have been identified as hosting phishing content.
pub phishing_detected: bool,
/// Indicates whether the zone is allowed to be connected to multiple Railguns at once
pub multiple_railguns_allowed: bool,
}

/// A Zone is a domain name along with its subdomains and other identities
Expand Down

0 comments on commit f0311d2

Please sign in to comment.