json-schema-migrate
json-schema-migrate copied to clipboard
Migrate JSON-Schema draft-04 to draft-07, draft-2019-09 or draft-2020-12
Hi everyone, ### Problem Statement 🛑 1. I've used the code example, which works as expected. But if I use `migrate.draft2019` from your example, no `$schema` is set. Is this...
Hi, I migrated the swagger v2.0 spec from [draft04](https://github.com/seriousme/openapi-schema-validator/blob/master/schemas.orig/v2.0/schema.json) to [draft07](https://github.com/seriousme/openapi-schema-validator/blob/master/schemas/v2.0/schema.json) and although the tool helped a lot (thanks for that !) I ran into a few issues I thought...
Why metaSchema function return "https://json-schema.org/draft/2019-09/schema" even if SchemaVersion is draft2020? https://github.com/ajv-validator/json-schema-migrate/blob/7571107aca90a17235f49ae4bb203b83b8d34522/src/index.ts#L29
close #9 cc @epoberezkin @jasoniangreen