-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
Upgrade to JSON Schema draft 2019/09 #239
Comments
This package depends on
|
@sindresorhus Correct. But in order to use import Ajv from 'ajv/dist/2019'; according to https://ajv.js.org/json-schema.html#draft-2019-09. I looked at the code inside import {type JSONSchema as TypedJSONSchema} from 'json-schema-typed/draft-2019-09'; we'll get a bunch of errors:
Is there another way to use |
Hmm. Weird that they would not use the latest draft as the default. I guess we can just do a major version where we update it to the latest draft. I assume you would be ok with draft-2020-12? |
@sindresorhus Yes, I think it makes sense to move on to the latest draft. The only thing to keep in mind is that |
Looks like it's not possible to upgrade. We need to upgrade to |
@sindresorhus Can't we drop |
|
Not sure what the alternative would be in this case. It doesn't seem like Electron would support ES modules anytime soon (see this thread that's been going on for 3 years!). |
Any plans to upgrade to JSON Schema draft 2019/09? It unlocks some goodies including
unevaluatedProperties
which is very important when working with schema compositions.This is an example where not having
unevaluatedProperties
support limits the schema:The text was updated successfully, but these errors were encountered: