Releases: pb33f/libopenapi-validator
v0.0.50
Moved internal cache to sync.Map
in response body validator
url.Parse
does not handle special characters well.
Some openapi server configurations will have variable templating (ie. {host}
). Adds a second parsing attempt if the initial attempt fails by attempting to remove the host.
v0.0.49
This fix supports the range definition for response codes.
ref: https://swagger.io/docs/specification/describing-responses/
Also fixes a race condition discovered in vacuum when running tests
Response code range fix added by @k1LoW
v0.0.48
Added the following properties to ValidationError
SpecPath
= the spec path of the error
RequestMethod
= HTTP verb used in the error
RequestPath
= HTTP path used in the error
v0.0.47
Supports /
for server definitions now when looking up paths, Fixes a bug with missing security schemes also.
v0.0.46
v0.0.45
Path parameter validation did not properly strip the base path from the request path when doing parameter validation.
If the server had a non-null postfix path, then the incorrect parameter would be validated.
v0.0.44
String and number path param validation has been improved.
v0.0.43
Add the support to validate query simple params like
parameters:
- name: fishy
in: query
required: true
schema:
type: string
minLength: 4
parameters:
- name: fishy
in: query
required: true
schema:
type: number
minimum: 200
v0.0.42
v0.0.41
Added various enhancements to deepObject
validation on requests, and addressed issues reported via wiretap.