Studio: fix tests
This commit is contained in:
parent
84dee10201
commit
7064d84fbd
2 changed files with 4 additions and 3 deletions
|
@ -26,6 +26,7 @@ import LineRenderingConfigJson from "../Json/LineRenderingConfigJson"
|
||||||
import ValidationUtils from "./ValidationUtils"
|
import ValidationUtils from "./ValidationUtils"
|
||||||
import { RenderingSpecification } from "../../../UI/SpecialVisualization"
|
import { RenderingSpecification } from "../../../UI/SpecialVisualization"
|
||||||
import { QuestionableTagRenderingConfigJson } from "../Json/QuestionableTagRenderingConfigJson"
|
import { QuestionableTagRenderingConfigJson } from "../Json/QuestionableTagRenderingConfigJson"
|
||||||
|
import { ConfigMeta } from "../../../UI/Studio/configMeta"
|
||||||
|
|
||||||
class ExpandFilter extends DesugaringStep<LayerConfigJson> {
|
class ExpandFilter extends DesugaringStep<LayerConfigJson> {
|
||||||
private static readonly predefinedFilters = ExpandFilter.load_filters()
|
private static readonly predefinedFilters = ExpandFilter.load_filters()
|
||||||
|
@ -1069,9 +1070,9 @@ export class RewriteSpecial extends DesugaringStep<TagRenderingConfigJson> {
|
||||||
} {
|
} {
|
||||||
const errors = []
|
const errors = []
|
||||||
json = Utils.Clone(json)
|
json = Utils.Clone(json)
|
||||||
const paths: { path: string[]; type?: any; typeHint?: string }[] = tagrenderingconfigmeta
|
const paths: ConfigMeta[] = tagrenderingconfigmeta
|
||||||
for (const path of paths) {
|
for (const path of paths) {
|
||||||
if (path.typeHint !== "rendered") {
|
if (path.hints.typehint !== "rendered") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
Utils.WalkPath(path.path, json, (leaf, travelled) =>
|
Utils.WalkPath(path.path, json, (leaf, travelled) =>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
export type JsonSchemaType =
|
export type JsonSchemaType =
|
||||||
| string
|
| string
|
||||||
| { $ref: string; description: string }
|
| { $ref: string; description?: string }
|
||||||
| { type: string }
|
| { type: string }
|
||||||
| JsonSchemaType[]
|
| JsonSchemaType[]
|
||||||
export interface JsonSchema {
|
export interface JsonSchema {
|
||||||
|
|
Loading…
Reference in a new issue