Skip to content

Commit

Permalink
Adjust the omitempty json flags within CIEPSResponse (#22305)
Browse files Browse the repository at this point in the history
- Remove the omitempty flag from issuer_ref, and add it to the
   warnings and error fields
  • Loading branch information
stevendpclark authored Aug 11, 2023
1 parent c6bd2db commit 510cce5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdk/helper/certutil/cieps.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ func (req *CIEPSRequest) ParseUserCSR() error {
// parse if unknown fields are sent.
type CIEPSResponse struct {
UUID string `json:"request_uuid"`
Error string `json:"error"`
Warnings []string `json:"warnings"`
Error string `json:"error,omitempty"`
Warnings []string `json:"warnings,omitempty"`
Certificate string `json:"certificate"`
ParsedCertificate *x509.Certificate `json:"-"`
IssuerRef string `json:"issuer_ref,omitempty"`
IssuerRef string `json:"issuer_ref"`
StoreCert bool `json:"store_certificate"`
GenerateLease bool `json:"generate_lease"`
}
Expand Down

0 comments on commit 510cce5

Please sign in to comment.