libopenapi-validator
libopenapi-validator copied to clipboard
OpenAPI validation extension for libopenapi, validate http requests and responses as well as schemas
I just had a CI build fail due to a race condition with one of the unit tests. The unit tests expects a slice, but the ordering of the output...
My unit test originally failed because pb33f’s high-level validator isn’t flagging missing fields in application/x-www-form-urlencoded bodies. When I swapped the test to JSON, the validator caught the missing property immediately,...
The OpenAPI validator incorrectly matches literal path segments against parameterized paths when the parameterized path is defined before the literal path in the spec. This causes validation failures where literal...
When validating cookie parameters, no error is raised if the required cookie is missing from the request. This means that when validating a request that lacks the required cookie but...
The header value isn't validated properly if the value type is `string`. Judging by the code, validation only occurs if the schema specifies valid enum values; in all other cases,...
Thank you for your work on this project. We’re using `libopenapi-validator` in a Go project with [Fiber v2](https://github.com/gofiber/fiber), which is based on [fasthttp](https://github.com/valyala/fasthttp). I have a few questions: - Does...