You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to request that this project add a configuration option to both validateRequests and validateResponses so that an additional property will cause an error to be returned instead of a silent removal. This is to match the current behavior of allowUnknownQueryParameters and the other similar project.
The text was updated successfully, but these errors were encountered:
In the OpenAPI spec, for object types, I add
additionalProperties: false
.With this project, using the
removeAdditional
for bothvalidateRequests
andvalidateResponses
, I can have all additional properties removed.I noticed and tested that unknown query parameters will cause an error to be returned instead of a silent removal.
A similar project https://github.com/kogosoftwarellc/open-api/tree/main/packages/openapi-response-validator, will return an error when an additional property is found.
I would like to request that this project add a configuration option to both
validateRequests
andvalidateResponses
so that an additional property will cause an error to be returned instead of a silent removal. This is to match the current behavior ofallowUnknownQueryParameters
and the other similar project.The text was updated successfully, but these errors were encountered: