Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Should meta schemas be bundled? #7

Open
jonaslagoni opened this issue Mar 28, 2022 · 1 comment
Open

Should meta schemas be bundled? #7

jonaslagoni opened this issue Mar 28, 2022 · 1 comment

Comments

@jonaslagoni
Copy link

We had some problems bundling the Draft 7 JSON Schema document in our compound JSON Schema document for AsyncAPI. One discussion that came up is, should the meta schema be bundled together when used? 🤔

Maybe it's already decided, but I just need to keep track of the issue and discussion, feel free to close if it's no longer relevant.

Slack discussion: https://json-schema.slack.com/archives/C5CF75URH/p1648137451821299

@jdesrosiers
Copy link
Contributor

Anything that's referenced with $ref will be bundled by default even if it's a meta-schema. You can set any schema to be excluded from the bundle using the externalSchemas option on the "bundle" function. See the README for more details.

It would probably be a good idea for me to automatically exclude anything known to be a meta-schema, but for now, it's a manual process.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants