Studio: fix tests

This commit is contained in:
Pieter Vander Vennet 2023-06-21 22:42:26 +02:00
parent 84dee10201
commit 7064d84fbd
2 changed files with 4 additions and 3 deletions

View file

@ -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<LayerConfigJson> {
private static readonly predefinedFilters = ExpandFilter.load_filters()
@ -1069,9 +1070,9 @@ export class RewriteSpecial extends DesugaringStep<TagRenderingConfigJson> {
} {
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) =>

View file

@ -4,7 +4,7 @@
export type JsonSchemaType =
| string
| { $ref: string; description: string }
| { $ref: string; description?: string }
| { type: string }
| JsonSchemaType[]
export interface JsonSchema {