Open
Description
New Feature / Enhancement Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
Current Limitation
I like to store a JSON file with the SCHEMA definition. It could be nice to be able to set definitions via:
schema: {
definitions: 'schema.json'
},
Feature / Enhancement Description
Allow setting a file to schema definitions
Example Use Case
schema: {
definitions: 'schema.json'
},
Alternatives / Workarounds
const definitions = await fs
.readFile('spec/support/schema.json', 'utf8')
.then(file => JSON.parse(file));
schema: {
definitions
},