Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider including the meta-schema in the npm package #21

Open
ianshade opened this issue Sep 11, 2023 · 0 comments
Open

Consider including the meta-schema in the npm package #21

ianshade opened this issue Sep 11, 2023 · 0 comments

Comments

@ianshade
Copy link
Member

ianshade commented Sep 11, 2023

If I understand correctly, to use the SchemaValidator, one needs to expose some method capable of making HTTP requests to setupSchemaValidator, or alternatively in a scenario where making requests is undesired or impossible, to download and store the meta-schemas in their code/database and fetch them from there, or provide them through a prebuilt cache. I think it would be easier for consumers of the library if the meta-schemas were available in the npm package, in order to:
a) allow importing them directly for use with other validators
b) make them available to the SchemaValidator by default, and make setupSchemaValidator call fetch only when unrecognized refs to third-party schemas are present.

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

No branches or pull requests

1 participant