Skip to content

Commit a467673

Browse files
committed
Always serialize Proxied and Priority fields
1 parent 770668e commit a467673

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dns.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type DNSRecord struct {
1616
Name string `json:"name,omitempty"`
1717
Content string `json:"content,omitempty"`
1818
Proxiable bool `json:"proxiable,omitempty"`
19-
Proxied bool `json:"proxied,omitempty"`
19+
Proxied bool `json:"proxied"`
2020
TTL int `json:"ttl,omitempty"`
2121
Locked bool `json:"locked,omitempty"`
2222
ZoneID string `json:"zone_id,omitempty"`
@@ -25,7 +25,7 @@ type DNSRecord struct {
2525
ModifiedOn time.Time `json:"modified_on,omitempty"`
2626
Data interface{} `json:"data,omitempty"` // data returned by: SRV, LOC
2727
Meta interface{} `json:"meta,omitempty"`
28-
Priority int `json:"priority,omitempty"`
28+
Priority int `json:"priority"`
2929
}
3030

3131
// DNSRecordResponse represents the response from the DNS endpoint.

0 commit comments

Comments
 (0)