Skip to content

feat(openapi3): more RequiredFieldError leaves (parameter.name, responses, apiKey name)#1173

Closed
reuvenharrison wants to merge 1 commit into
getkin:masterfrom
oasdiff:feat/validation-error-required-non-empty
Closed

feat(openapi3): more RequiredFieldError leaves (parameter.name, responses, apiKey name)#1173
reuvenharrison wants to merge 1 commit into
getkin:masterfrom
oasdiff:feat/validation-error-required-non-empty

Conversation

@reuvenharrison

Copy link
Copy Markdown
Contributor

Three new RequiredFieldError leaves covering "this field/object must not be empty" sites that don't share the existing helper.

Site Leaf Field
parameter.go:314 *ParameterNameRequired parameter.name
response.go:81 *ResponsesNonEmptyRequired responses
security_scheme.go:191 *APIKeySecuritySchemeNameRequired securityScheme.name

Backward compat

Every converted site preserves its original Error() string byte-for-byte.

Tests

  • parameter.name and responses non-empty exercised through the existing TestValidationError_AllRequiredFieldLeaves table.
  • apiKey securityScheme.name covered by a focused subtest because the failure is gated on Type=apiKey + valid In, not document-shape.

@reuvenharrison

Copy link
Copy Markdown
Contributor Author

Superseded by #1180 — combined per @fenollp's request on #1177 to avoid rebase churn. The original commit on this branch is preserved unchanged in #1180.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant