libopenapi-validator
libopenapi-validator copied to clipboard
OpenAPI validation extension for libopenapi, validate http requests and responses as well as schemas
Hi, I have the following spec. ``` json { "openapi": "3.0.0", "info": { "title": "API Spec With Mandatory Header", "version": "1.0.0" }, "paths": { "/api-endpoint": { "get": { "summary": "Restricted...
Given my understanding of JSON schema and OpenAPI (3.1) the following schema is supposed to be valid: ```yaml paths: /path: get: parameters: - name: obj in: query style: deepObject schema:...
The idea is to have a more precise error reporting from the FindPath function, before it could yield a path not found validation error, with this proposed change we will...
Thanks your great job. I found problem when Server path is no base path like this. ``` servers: - url: 'http://127.0.0.1/' ``` This will call checkPathAgainstBase with basePath '/'. And...
First of all, i love what you did there. What do you think about handling default values in query parameters ?
Hello, I would like to ask, if you can add a feature where in Request/Response Validation Errors we can get the "**field**" name . This is also provided in Kin...
kin-openapi has some functionality where it checks that defaults and examples match the schema, and that formats match types and patterns are valid. This can, for example, reject the following...
For example, in this schema, the username is defined as a string type. If called in this way, it will lead to the inability to find the route: https://github.com/pb33f/libopenapi-validator/blob/657229e4dc4f54ea6d298dec56fec8b500baa3e7/test_specs/petstorev3.json#L818-L836 ```go...
I'm looking at adding libopenapi to https://gitlab.com/jamietanna/httptest-openapi, a library I've got for writing (unit) tests with Go's `net/http` handlers by validating the response matches an OpenAPI spec. I've looked at...
When attempting to validate an http response with a mandatory response header, validation is successful even when the mandatory header is missing. Challenge is that currently there is a ValidateResponseBody...