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