Skip to content

0.7.0 / 27 Dec 2019

Compare
Choose a tag to compare
@rwalle61 rwalle61 released this 27 Dec 15:40
· 171 commits to master since this release
f69436f

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