yarn chai-openapi-response-validator 0.7.0
0.7.0 / 27 Dec 2019

latest releases: 0.14.2, 0.14.2-alpha.0, 0.14.1...
4 years ago

Features:

  • Users can now validate objects against individual schema objects #38, e.g.:

Given an API spec including:

...
components:
  schemas:
    ExampleSchemaObject:
      type: string
...

Assert in unit tests:

expect('foo').to.satisfySchemaDefinedInApiSpec('ExampleSchemaObject') // passes
expect(['foo']).to.satisfySchemaDefinedInApiSpec('ExampleSchemaObject') // throws useful error 

For a fuller guide, see docs from master or the original PR

Don't miss a new chai-openapi-response-validator release

NewReleases is sending notifications on new releases.