Skip to content

Commit

Permalink
[NET-3700] add omitempty to api prepared query targets (#18184)
Browse files Browse the repository at this point in the history
add `omitempty` to api prepared query targets

Manual backport of c2bbe67.

Co-authored-by: Nick Irvine <115657443+nfi-hashicorp@users.noreply.github.com>
  • Loading branch information
zalimeni and nfi-hashicorp authored Jul 19, 2023
1 parent 453052c commit edda4f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/prepared_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit edda4f8

Please sign in to comment.