You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of Ajv are you using? Does the issue happen if you use the latest version?
8.12.0
Your typescript code
importtype{JSONSchemaType}from"ajv";
Describe the change that should be made to address the issue?
Hello everyone! First of all, thanks to all the maintainers for your contribution!
I would just like to know why ajv contains its own definitions for JSON Schema. JSON Schema is a Standard, so its types should be the same in different applications. Common types would help to glue different packages. It may look like this:
@isqua From what I can tell @types/json-schema only goes up to JSON Schema version 7. There are two more version since then, which AJV supports. I have already created an issue to at least export their types to a separate, installable package.
What version of Ajv are you using? Does the issue happen if you use the latest version?
8.12.0
Your typescript code
Describe the change that should be made to address the issue?
Hello everyone! First of all, thanks to all the maintainers for your contribution!
I would just like to know why ajv contains its own definitions for JSON Schema. JSON Schema is a Standard, so its types should be the same in different applications. Common types would help to glue different packages. It may look like this:
But now I have to redefine package typings to make types from ajv and different packages "match" to each other.
On the json-schema.org website I found typescript-json-schema package, which imports types from @types/json-schema package.
Why doesn't ajv use
@types/json-schema
package?Are you going to resolve the issue?
Apparently, this is an ideological issue, so I’m not able to solve it.
The text was updated successfully, but these errors were encountered: