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

Use of unspecific JSON Schema dialect will cause problems #535

Open
Relequestual opened this issue Mar 22, 2022 · 0 comments
Open

Use of unspecific JSON Schema dialect will cause problems #535

Relequestual opened this issue Mar 22, 2022 · 0 comments

Comments

@Relequestual
Copy link

'$schema': 'http://json-schema.org/schema#'

Hey @jswelling, I see you're the code owner.
Great to see you're using JSON Schema for data validation, however I must raise a concern.
By using an unspecific JSON Schema dialect (or version) URI in your $schema value, you are inviting unreliable behaviour.

In fact, we are considering removing the redirect we have currently: json-schema-org/community#160

You should ideally use a version specific URI.
Failing to do so will have unexpected and unintended consequences should your schemas be used by others or your implementation gets updated.

Happy to answer questions should you have them.

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