From 5c2575e68fb133cd5c52730f3b6d7818c8043b66 Mon Sep 17 00:00:00 2001 From: Blake Imsland Date: Mon, 31 Jan 2022 14:15:53 -0800 Subject: [PATCH] fix: add missing SRV dnsRecord properties SRV records contain a `weight` property and a `port` property. These properties are present in the `dnsRecordCreate` definition but not in the `dnsRecord` definition even though they are returned by the API. --- go/models/dns_record.go | 6 ++++++ swagger.yml | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/go/models/dns_record.go b/go/models/dns_record.go index 29bc288d..c6d1c085 100644 --- a/go/models/dns_record.go +++ b/go/models/dns_record.go @@ -30,6 +30,9 @@ type DNSRecord struct { // managed Managed bool `json:"managed,omitempty"` + // port + Port int64 `json:"port,omitempty"` + // priority Priority int64 `json:"priority,omitempty"` @@ -47,6 +50,9 @@ type DNSRecord struct { // value Value string `json:"value,omitempty"` + + // weight + Weight int64 `json:"weight,omitempty"` } // Validate validates this dns record diff --git a/swagger.yml b/swagger.yml index 4b1ee954..745e5f02 100644 --- a/swagger.yml +++ b/swagger.yml @@ -2642,6 +2642,12 @@ definitions: priority: type: integer format: int64 + weight: + type: integer + format: int64 + port: + type: integer + format: int64 dns_zone_id: type: string site_id: @@ -3031,7 +3037,7 @@ definitions: name: type: string cron: - type: string + type: string parameters: page: type: integer