Releases: openapi-library/OpenAPIValidators
Releases · openapi-library/OpenAPIValidators
0.3.0 / 11 Nov 2019
0.2.5 / 8 Nov 2019
Can now handle cases where you define servers
with relative paths in your Open API 3 spec #19. (We do not yet support absolute paths in the server
object.)
0.2.4 / 19 Aug 2019
Can now handle cases where res.req.path includes path parameters #14. (E.g. we can match a res.req.path
of example/foo
to the path example/{pathParam}
in your Open API spec).
0.2.3 / 15 Aug 2019
0.2.2 / 15 Aug 2019
Fixed a bug #8 where we were accidentally treating OpenAPI 2 definitions
as OpenAPI 3 components
. This restores full compatibility with OpenAPI 2 specs.
0.2.0 / 30 Jul 2019
Added simple Chai support for asserting that HTTP responses satisfy an OpenAPI spec. Specifically, added the expect(res).to.have.status(200).and.satisfyApiSpec
assertion.
Features
- Validates the status and body of HTTP responses against an OpenAPI spec
- Easily load your OpenAPI spec just once in your tests
- Supports OpenAPI 2 and 3
- Supports OpenAPI specs in YAML and JSON formats
- Supports
$ref
in response schemas (i.e.$ref: '#/definitions/ComponentType/ComponentName'
) - Informs you if your OpenAPI spec is invalid