fix: omit empty claims in AuthConfig

This commit is contained in:
max furman 2018-10-26 10:51:40 -07:00
parent ca6087145f
commit b457b15292

View file

@ -75,10 +75,10 @@ type Config struct {
// AuthConfig represents the configuration options for the authority.
type AuthConfig struct {
Provisioners []*Provisioner `json:"provisioners,omitempty"`
Template *x509util.ASN1DN `json:"template,omitempty"`
Claims *ProvisionerClaims
DisableIssuedAtCheck bool `json:"disableIssuedAtCheck,omitempty"`
Provisioners []*Provisioner `json:"provisioners,omitempty"`
Template *x509util.ASN1DN `json:"template,omitempty"`
Claims *ProvisionerClaims `json:"claims,omitempty"`
DisableIssuedAtCheck bool `json:"disableIssuedAtCheck,omitempty"`
}
// Validate validates the authority configuration.