SEPARATE ME: add `omitempty` to api prepared query targets

pull/17966/head
Nick Irvine 2023-06-29 12:45:12 -07:00
parent 6124ac97b5
commit c2bbe67714
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -32,11 +32,11 @@ type QueryFailoverTarget struct {
// Partition specifies a partition to try during failover
// Note: Partition are available only in Consul Enterprise
Partition string
Partition string `json:",omitempty"`
// Namespace specifies a namespace to try during failover
// Note: Namespaces are available only in Consul Enterprise
Namespace string
Namespace string `json:",omitempty"`
}
// QueryDNSOptions controls settings when query results are served over DNS.