Skip to content

Allow Schema.definitions to be a file #8395

Open
@dblythy

Description

@dblythy

New Feature / Enhancement Checklist

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
},

3rd Party References

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions