openapi-enforcer
Advanced tools
Changelog
1.11.0
Definition Bundler
Created a custom-built bundler that bundles and references nodes in a format that follows the OpenAPI specification.
Custom Ref Parser
The custom ref parser had a bug where is failed to check for null values when processing objects. That has been resolved.
Changelog
1.10.8
Validate enums, defaults, and examples after discriminator dereference.
When using an example in a discriminator a error would occur because discriminator references weren't being resolved until later in the process. You can't validate a value against a schema that has not yet been resolved.
Changelog
1.10.7
Same paths with different verbs should not be considered in conflict.
If you have two paths that define the same endpoint then this is identified as a conflict. Previously, this applied across HTTP methods too. This patch fixes misidentifying conflicting paths that use different HTTP methods.
Thanks to ideadapt for the PR fix and tests.
Changelog
1.10.6
Use valueOf evaluation for minimum and maximum comparison.
Previously this was casting to number using +value
, but that leads to casting failures in some instances. Using valueOf()
will provide more flexibility while also providing proper consistency.
Changelog
1.10.5
Removed Buffer constructors
Adjusted for the deprecation of Buffer constructors. https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/
This change removes support for NodeJS versions 5.9.x and earlier.
Changelog
1.10.4
OpenAPI#request can accept query object.
The OpenAPI request
function will now also accept a separate query
property as input.
Changelog
1.10.3
Passed in options no longer modified.
When creating an Enforcer instance options can be provided. The options object was being altered. This has been fixed to now create a copy of the options prior to altering.
Changelog
1.10.2
Fixed bug discriminator mapping with examples.
Examples were being validated before discriminator mappings were resolved. This fix ensures that examples are validated after discriminator mappings are resolved.
Changelog
1.10.1
Fixed bug with oneOf discriminator.
The serialize and deserialize through the oneOf
or anyOf
was not providing sufficient validations. This has been fixed.
Changelog
1.10.0
A custom ref parser to provide sufficient context to OpenAPI v3 discriminator mappings.
The previous parser had limitations when discriminators existed outside the primary OpenAPI definition file.
A production option to improve load times for production.
This is accomplished by performing fewer validations on your OpenAPI definition, but your definition must still be valid otherwise runtime errors will occur.