mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +00:00
Adjust the omitempty json flags within CIEPSResponse (#22305)
- Remove the omitempty flag from issuer_ref, and add it to the warnings and error fields
This commit is contained in:
@@ -134,11 +134,11 @@ func (req *CIEPSRequest) ParseUserCSR() error {
|
|||||||
// parse if unknown fields are sent.
|
// parse if unknown fields are sent.
|
||||||
type CIEPSResponse struct {
|
type CIEPSResponse struct {
|
||||||
UUID string `json:"request_uuid"`
|
UUID string `json:"request_uuid"`
|
||||||
Error string `json:"error"`
|
Error string `json:"error,omitempty"`
|
||||||
Warnings []string `json:"warnings"`
|
Warnings []string `json:"warnings,omitempty"`
|
||||||
Certificate string `json:"certificate"`
|
Certificate string `json:"certificate"`
|
||||||
ParsedCertificate *x509.Certificate `json:"-"`
|
ParsedCertificate *x509.Certificate `json:"-"`
|
||||||
IssuerRef string `json:"issuer_ref,omitempty"`
|
IssuerRef string `json:"issuer_ref"`
|
||||||
StoreCert bool `json:"store_certificate"`
|
StoreCert bool `json:"store_certificate"`
|
||||||
GenerateLease bool `json:"generate_lease"`
|
GenerateLease bool `json:"generate_lease"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user