openapi-enforcer
Advanced tools
Changelog
1.15.0
Partial TypeScript Support
Added some type support for the enforcer. It's a start.
Added Schema Hooks
Developers can now add hooks before and after serialization, deserialization, and validation. See the documentation on the schema component.
Changelog
1.14.3
Reporting for Equivalent Paths
A bug was identified that could incorrectly report the wrong paths when equivalent paths were identified.
Changelog
1.14.2
Example Validation with One Of Schema
There were several problems with validating examples against schemas with oneOf
. This has been fixed.
Changelog
1.14.1
Security Requirement OpenID Allowed Scopes
The OpenID security requirement incorrectly did not allow scopes. This has been fixed in this release.
Changelog
1.14.0
Create Random String with Pattern
Random Number Generator
When generating a random number from a schema it was possible that the randomly generated value would not fall within the expected minimum / maximum range. This is fixed.
Changelog
1.13.3
Discriminator Bugs
Various bugs were found for serializing, deserializing, randomly generating, and populating values off of a schema that included a discriminator. Some of these bugs were related to not following the OpenAPI specification closely enough.
Now if a discriminator is specified then it will not attempt to find other matches when the discriminator does not resolve the schema.
Changelog
1.13.2
Read / Write Required Property May Not Exist
Fixed an error when checking for required schema properties that should not be included due to being read-only or write only.
Changelog
1.13.1
Function operation.response Supports Wildcard Codes
OpenAPI spec 3.0.0 and newer support wildcard response codes. Examples: 1XX
, 2XX
, 3XX
, 4XX
, 5XX
. The document validator has supported this, but the Operation.prototype.response function did not support that until now.
Changelog
1.13.0
Add getBundledDefinition
The ref parser already has a bundler function, but now when creating an OpenAPI or Swagger component using the Enforcer function an additional property will be added to get the bundled definition.