Do not show provisioners if they are not required.

For deployment types like linked ca, the list of provisioners in
the ca.json are not required, so we should tag the json as omitempty.
This commit is contained in:
Mariano Cano 2021-08-02 15:34:39 -07:00
parent b0e0f2b89d
commit 384be6e205

View file

@ -85,7 +85,7 @@ type ASN1DN struct {
type AuthConfig struct {
*cas.Options
AuthorityID string `json:"authorityId,omitempty"`
Provisioners provisioner.List `json:"provisioners"`
Provisioners provisioner.List `json:"provisioners,omitempty"`
Admins []*linkedca.Admin `json:"-"`
Template *ASN1DN `json:"template,omitempty"`
Claims *provisioner.Claims `json:"claims,omitempty"`