/
githubmirror
/
strapi
Обзор
Документация
Войти
/
githubmirror
/
strapi
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
tests/migration/scenario-schema.json
64 строки
2 KB
Ben Irvin
test(migration): version migration testing framework (#26060)
06 авг 2026, 15:39
Не верифицирован
06 авг 2026, 15:39
ac0c928
Код
Авторство
О чём код?
{ "$comment": "Loose documentation for migration scenario JSON (not a runtime schema validator).", "type": "object", "required": ["id", "baseline", "stages"], "properties": { "id": { "type": "string" }, "description": { "type": "string" }, "dataOrigin": { "type": "string", "description": "v4 | v5; defaults from baseline if omitted" }, "baseline": { "type": "object", "oneOf": [ { "type": "object", "required": ["type", "initialVersion"], "properties": { "type": { "const": "v4-scaffold" }, "initialVersion": { "type": "string", "description": "e.g. legacy (latest v4) or 4.26.2" } } }, { "type": "object", "required": ["type", "initialVersion"], "properties": { "type": { "const": "v5-pinned" }, "initialVersion": { "type": "string", "description": "e.g. 5.7.0" } } } ] }, "stages": { "type": "array", "minItems": 1, "items": { "oneOf": [ { "type": "object", "required": ["id", "type", "version"], "properties": { "id": { "type": "string" }, "type": { "const": "strapi-pinned" }, "version": { "type": "string" } } }, { "type": "object", "required": ["id", "type", "validate"], "properties": { "id": { "type": "string" }, "type": { "const": "workspace" }, "validate": { "type": "array", "minItems": 1, "items": { "type": "string" } } } } ] } } } }