Open heath-freenome opened 2 years ago
Second this issue as it would help us to fully type our json schema while using the React JSON Schema form library with AJV validation.
Is there any update on this? Having this done would improve the DX of many projects.
What version of Ajv you are you using? AJV-8
What problem do you want to solve? I am a contributor to React JSON Schema Form and we have a situation where we are using either AJV 6 or 8 in different circumstances. We are currently using
@types/json-schema
for the JSONSchema7 definition. We are wanting to be able to use the schema types from AJV in our Repos without pulling the whole of the AJV implementationWhat do you think is the correct solution to problem?
Extract the Typescript definitions for Schemas (for JSONSchema7, 2019, 2020) into a new repo (e.g. ajv-schema-types, ajv-json-schemas or ajv-types) so that it can be imported without the overhead of the implementations
Will you be able to implement it? Possibly