Releases: pb33f/libopenapi-validator
v0.13.8
-
Reworked request and response schema validation to use errors.As instead of direct JSON Schema error type assertions, making validation error handling safer when errors are wrapped.
-
Fixed a goroutine leak in schema-property lookup for empty JSONPath values and added a regression test for that case.
v0.13.7
v0.13.6
v0.13.5
v0.13.4
Add opt-in readOnly/writeOnly rejection to strict mode
When StrictRejectReadOnly is enabled, readOnly properties in requests are reported as validation errors instead of being silently skipped. When StrictRejectWriteOnly is enabled, writeOnly properties in responses are reported similarly.
Addresses #90
v0.13.3
Fixes #27
And fixes pb33f/wiretap#134 fully
v0.13.2
v0.13.1
Adds support for passing compiled schemas for document validation. Prevents another compilation step, saving on compute and memory.
No breaking changes.
v0.13.0
Refactored SchemaValidationFailure struct fields.
This is a breaking change,
Also implemented a RadixTree design to speed up path lookup.
v0.12.1
Adds support for all authentication types.