Skip to content

Commit

Permalink
Make Proxiable and Priority fields omitempty
Browse files Browse the repository at this point in the history
  • Loading branch information
patryk authored Dec 11, 2020
1 parent 53f760d commit 03f3015
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type DNSRecord struct {
Name string `json:"name,omitempty"`
Content string `json:"content,omitempty"`
Proxiable bool `json:"proxiable,omitempty"`
Proxied bool `json:"proxied"`
Proxied bool `json:"proxied,omitempty"`
TTL int `json:"ttl,omitempty"`
Locked bool `json:"locked,omitempty"`
ZoneID string `json:"zone_id,omitempty"`
Expand All @@ -25,7 +25,7 @@ type DNSRecord struct {
ModifiedOn time.Time `json:"modified_on,omitempty"`
Data interface{} `json:"data,omitempty"` // data returned by: SRV, LOC
Meta interface{} `json:"meta,omitempty"`
Priority int `json:"priority"`
Priority int `json:"priority,omitempty"`
}

// DNSRecordResponse represents the response from the DNS endpoint.
Expand Down

0 comments on commit 03f3015

Please sign in to comment.