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 am currently trying to validate some responses using the openapi-response-validator package. However, the responses that I'd like to pass to the OpenAPIResponseValidator look something like:
These responses are valid and comply with the OpenAPI 3 schema, however, the OpenAPIResponseValidatorArgs only have schema present in the Response object defined which does not comply with the OpenAPI 3 Schema. It should be as follows:
Furthermore, the example given in the openapi-response-validator README also does not work for the same reason, as description is not defined in the response object.
As it currently is, the openapi-response-validator does not validate OpenAPI 3 responses due to incorrect/missing args. Can these OpenAPIResponseValidatorArgs be updated to comply with the OpenAPI 3 spec and the validation of the response updated accordingly, please?
The text was updated successfully, but these errors were encountered:
sazazi
changed the title
OpenAPIResponseValidatorArgs responses object incorrectly defined
Bug: OpenAPIResponseValidatorArgs responses object incorrectly defined
Sep 27, 2023
I am currently trying to validate some responses using the
openapi-response-validator
package. However, the responses that I'd like to pass to the OpenAPIResponseValidator look something like:These responses are valid and comply with the OpenAPI 3 schema, however, the OpenAPIResponseValidatorArgs only have
schema
present in the Response object defined which does not comply with the OpenAPI 3 Schema. It should be as follows:Furthermore, the example given in the openapi-response-validator README also does not work for the same reason, as
description
is not defined in the response object.As it currently is, the
openapi-response-validator
does not validate OpenAPI 3 responses due to incorrect/missing args. Can these OpenAPIResponseValidatorArgs be updated to comply with the OpenAPI 3 spec and the validation of the response updated accordingly, please?The text was updated successfully, but these errors were encountered: