diff --git a/Models/ThemeConfig/Conversion/PrepareLayer.ts b/Models/ThemeConfig/Conversion/PrepareLayer.ts index 3709de67e6..973af55d3f 100644 --- a/Models/ThemeConfig/Conversion/PrepareLayer.ts +++ b/Models/ThemeConfig/Conversion/PrepareLayer.ts @@ -26,6 +26,7 @@ import LineRenderingConfigJson from "../Json/LineRenderingConfigJson" import ValidationUtils from "./ValidationUtils" import { RenderingSpecification } from "../../../UI/SpecialVisualization" import { QuestionableTagRenderingConfigJson } from "../Json/QuestionableTagRenderingConfigJson" +import { ConfigMeta } from "../../../UI/Studio/configMeta" class ExpandFilter extends DesugaringStep { private static readonly predefinedFilters = ExpandFilter.load_filters() @@ -1069,9 +1070,9 @@ export class RewriteSpecial extends DesugaringStep { } { const errors = [] json = Utils.Clone(json) - const paths: { path: string[]; type?: any; typeHint?: string }[] = tagrenderingconfigmeta + const paths: ConfigMeta[] = tagrenderingconfigmeta for (const path of paths) { - if (path.typeHint !== "rendered") { + if (path.hints.typehint !== "rendered") { continue } Utils.WalkPath(path.path, json, (leaf, travelled) => diff --git a/UI/Studio/jsonSchema.ts b/UI/Studio/jsonSchema.ts index 512ee6513c..349d66a5a0 100644 --- a/UI/Studio/jsonSchema.ts +++ b/UI/Studio/jsonSchema.ts @@ -4,7 +4,7 @@ export type JsonSchemaType = | string - | { $ref: string; description: string } + | { $ref: string; description?: string } | { type: string } | JsonSchemaType[] export interface JsonSchema {