When a body parameter is marked as hidden from the documentation, the validator does not recognize it as a valid field.
Example:
type UpdateAddressInput struct {
AddressIdPathParam
Body struct {
Address1 *string `json:"address1" required:"false"`
Address2 *string `json:"address2" required:"false"`
ZipPostalCode *string `json:"zip_postal_code" required:"false"`
City *string `json:"city" required:"false"`
Country *string `json:"country" required:"false"`
State *string `json:"state" required:"false"`
// App sends over id and address_masked, so we want to just ignore them
ID *uuid.UUID `json:"id,omitempty" hidden:"true"`
AddressMasked *bool `json:"address_masked,omitempty" hidden:"true"`
}
}
When a body parameter is marked as hidden from the documentation, the validator does not recognize it as a valid field.
Example:
However, the endpoint returns a 422: