libopenapi-validator icon indicating copy to clipboard operation
libopenapi-validator copied to clipboard

OpenAPI validation extension for libopenapi, validate http requests and responses as well as schemas

Results 36 libopenapi-validator issues
Sort by recently updated
recently updated
newest added

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...

needs investigation

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:...

needs investigation

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 ?

enhancement

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...

enhancement

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...

enhancement

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...

wontfix

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...

enhancement

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...

enhancement