[NET-3700] add `omitempty` to api prepared query targets (#18184)

add `omitempty` to api prepared query targets

Manual backport of c2bbe67714ee7c603447e18c25ad391b8de6226e.

Co-authored-by: Nick Irvine <115657443+nfi-hashicorp@users.noreply.github.com>
This commit is contained in:
Michael Zalimeni 2023-07-19 11:57:09 -04:00 committed by GitHub
parent 68ecbf6f86
commit 44e4a59e2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 // Partition specifies a partition to try during failover
// Note: Partition are available only in Consul Enterprise // Note: Partition are available only in Consul Enterprise
Partition string Partition string `json:",omitempty"`
// Namespace specifies a namespace to try during failover // Namespace specifies a namespace to try during failover
// Note: Namespaces are available only in Consul Enterprise // Note: Namespaces are available only in Consul Enterprise
Namespace string Namespace string `json:",omitempty"`
} }
// QueryDNSOptions controls settings when query results are served over DNS. // QueryDNSOptions controls settings when query results are served over DNS.