ajv-validator / ajv-validator/json-schema-migrate

JSON Schema Draft07 ->Draft2019

Abierto
#5 5 comentarios 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
28
Forks
4
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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 expected behavior?

2. Another problem would be, that I need to migrate a lot of `draft07` to at least `draft2019`. But I guess your are only handling `draft-04` to newer ones?

### What I have tried 🛠

1. used `ajv-cli migrate`
2. wrote own `nodejs` code using your `json-schema-migrate`.

#### Behavior
- No changes in `$id` fields (e.g. removing `#` and `/`).
- No update of `$schema` field.

### Wishes 🎁
- migrate from `draft07` to `draft2019`

I'm not an JSON Schema expert, so I'm really not sure if this all is expected behavior or not.

Kind regards,
Daniel

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.