Studio: WIP

This commit is contained in:
Pieter Vander Vennet 2023-06-26 10:23:42 +02:00
parent a1843b006c
commit b6142c758c
27 changed files with 29013 additions and 6886 deletions

View file

@ -139,7 +139,7 @@ function addMetafields(fieldnames: string[], fullSchema: JsonSchema): ConfigMeta
}
if (hints["types"]) {
const numberOfExpectedSubtypes = hints["types"].split(";").length
const numberOfExpectedSubtypes = hints["types"].replaceAll("|", ";").split(";").length
if (!Array.isArray(type)) {
throw (
"At " +
@ -193,9 +193,6 @@ function substituteReferences(
continue
}
const name = ref.substring("#/definitions/".length)
if (name === "TagRenderingConfigJson") {
continue
}
if (name.startsWith("{") || name.startsWith("Record<")) {
continue
}
@ -204,7 +201,7 @@ function substituteReferences(
continue
}
if (name === "DeleteConfigJson") {
if (name === "DeleteConfigJson" || name === "TagRenderingConfigJson") {
const target = allDefinitions[name]
if (!target) {
throw "Cannot expand reference for type " + name + "; it does not exist "