Skip to content

Releases: openapi-library/OpenAPIValidators

0.3.0 / 11 Nov 2019

11 Nov 14:24
11ff4d1
Compare
Choose a tag to compare
  • Now support response objects from axios, request-promise, supertest, and superagent (in addition to chai-http) #23
  • Clarify assertion failure messages #23

0.2.5 / 8 Nov 2019

08 Nov 15:39
bbe899d
Compare
Choose a tag to compare

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

19 Aug 18:43
6fe0721
Compare
Choose a tag to compare

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

15 Aug 19:24
f5de60e
Compare
Choose a tag to compare
  • Can now handle reponses to requests with query parameters #12
  • Tidied error messages #11

0.2.2 / 15 Aug 2019

15 Aug 16:06
e5a5eda
Compare
Choose a tag to compare

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

30 Jul 17:38
dc10e36
Compare
Choose a tag to compare

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