From 00698b25ca11c4f21adfc9220d2be648437548fb Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 9 Mar 2023 15:13:03 +0100 Subject: [PATCH] chore: regenerate json scheme metadata --- Docs/Schemas/FilterConfigJson.schema.json | 6 +- Docs/Schemas/FilterConfigJsonJSC.ts | 6 +- Docs/Schemas/LayerConfigJson.schema.json | 60 ++++- Docs/Schemas/LayerConfigJsonJSC.ts | 60 ++++- Docs/Schemas/LayoutConfigJson.schema.json | 60 ++++- Docs/Schemas/LayoutConfigJsonJSC.ts | 60 ++++- .../LineRenderingConfigJson.schema.json | 1 - Docs/Schemas/LineRenderingConfigJsonJSC.ts | 1 - Docs/Schemas/MappingConfigJson.schema.json | 6 +- Docs/Schemas/MappingConfigJsonJSC.ts | 6 +- .../PointRenderingConfigJson.schema.json | 1 - Docs/Schemas/PointRenderingConfigJsonJSC.ts | 1 - ...tionableTagRenderingConfigJson.schema.json | 27 +- .../QuestionableTagRenderingConfigJsonJSC.ts | 27 +- Docs/Schemas/RewritableConfigJson.schema.json | 6 +- Docs/Schemas/RewritableConfigJsonJSC.ts | 6 +- .../TagRenderingConfigJson.schema.json | 1 - Docs/Schemas/TagRenderingConfigJsonJSC.ts | 1 - Docs/Schemas/TilesourceConfigJson.schema.json | 54 +++- Docs/Schemas/TilesourceConfigJsonJSC.ts | 54 +++- assets/layoutconfigmeta.json | 250 ++++++++++++++---- .../questionabletagrenderingconfigmeta.json | 31 ++- assets/tagrenderingconfigmeta.json | 1 - 23 files changed, 617 insertions(+), 109 deletions(-) diff --git a/Docs/Schemas/FilterConfigJson.schema.json b/Docs/Schemas/FilterConfigJson.schema.json index d6557cac4..3158c033b 100644 --- a/Docs/Schemas/FilterConfigJson.schema.json +++ b/Docs/Schemas/FilterConfigJson.schema.json @@ -6,7 +6,7 @@ "type": "string" }, "options": { - "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.", + "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.\n\nAn example which searches by name:\n\n```\n{\n \"id\": \"shop-name\",\n \"options\": [\n {\n \"fields\": [\n {\n \"name\": \"search\",\n \"type\": \"string\"\n }\n ],\n \"osmTags\": \"name~i~.*{search}.*\",\n \"question\": {\n \"en\": \"Only show shops with name {search}\",\n }\n }\n ]\n }\n ```", "type": "array", "items": { "type": "object", @@ -54,6 +54,10 @@ "question" ] } + }, + "#": { + "description": "Used for comments or to disable a check\n\n\"ignore-possible-duplicate\": disables a check in `DetectDuplicateFilters` which complains that a filter can be replaced by a filter from the `filters`-library-layer", + "type": "string" } }, "required": [ diff --git a/Docs/Schemas/FilterConfigJsonJSC.ts b/Docs/Schemas/FilterConfigJsonJSC.ts index 6030dd61d..2f41e9521 100644 --- a/Docs/Schemas/FilterConfigJsonJSC.ts +++ b/Docs/Schemas/FilterConfigJsonJSC.ts @@ -6,7 +6,7 @@ export default { "type": "string" }, "options": { - "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.", + "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.\n\nAn example which searches by name:\n\n```\n{\n \"id\": \"shop-name\",\n \"options\": [\n {\n \"fields\": [\n {\n \"name\": \"search\",\n \"type\": \"string\"\n }\n ],\n \"osmTags\": \"name~i~.*{search}.*\",\n \"question\": {\n \"en\": \"Only show shops with name {search}\",\n }\n }\n ]\n }\n ```", "type": "array", "items": { "type": "object", @@ -54,6 +54,10 @@ export default { "question" ] } + }, + "#": { + "description": "Used for comments or to disable a check\n\n\"ignore-possible-duplicate\": disables a check in `DetectDuplicateFilters` which complains that a filter can be replaced by a filter from the `filters`-library-layer", + "type": "string" } }, "required": [ diff --git a/Docs/Schemas/LayerConfigJson.schema.json b/Docs/Schemas/LayerConfigJson.schema.json index c3dd69f6b..4f052337c 100644 --- a/Docs/Schemas/LayerConfigJson.schema.json +++ b/Docs/Schemas/LayerConfigJson.schema.json @@ -368,7 +368,7 @@ } }, "filter": { - "description": "All the extra questions for filtering.\nIf a string is given, mapComplete will search in 'filters.json' for the appropriate filter", + "description": "All the extra questions for filtering.\nIf a string is given, mapComplete will search in 'filters.json' for the appropriate filter or will try to parse it as `layername.filterid` and us that one", "anyOf": [ { "type": "array", @@ -437,6 +437,10 @@ "theme-only" ], "type": "string" + }, + "#": { + "description": "Used for comments and/or to disable some checks\n\nno-question-hint-check: disables a check in MiscTagRenderingChecks which complains about 'div', 'span' or 'class=subtle'-HTML elements in the tagRendering", + "type": "string" } }, "required": [ @@ -654,7 +658,6 @@ } }, "required": [ - "class", "path" ] }, @@ -703,7 +706,6 @@ } }, "required": [ - "class", "path" ] }, @@ -773,6 +775,10 @@ "type": "string" } ] + }, + "#": { + "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", + "type": "string" } }, "required": [ @@ -1047,7 +1053,26 @@ "type": "object", "properties": { "question": { - "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" + "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] + }, + "questionHint": { + "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] }, "freeform": { "description": "Allow freeform text input from the user", @@ -1143,7 +1168,26 @@ "type": "object", "properties": { "question": { - "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" + "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] + }, + "questionHint": { + "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] }, "freeform": { "description": "Allow freeform text input from the user", @@ -1304,7 +1348,7 @@ "type": "string" }, "options": { - "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.", + "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.\n\nAn example which searches by name:\n\n```\n{\n \"id\": \"shop-name\",\n \"options\": [\n {\n \"fields\": [\n {\n \"name\": \"search\",\n \"type\": \"string\"\n }\n ],\n \"osmTags\": \"name~i~.*{search}.*\",\n \"question\": {\n \"en\": \"Only show shops with name {search}\",\n }\n }\n ]\n }\n ```", "type": "array", "items": { "type": "object", @@ -1352,6 +1396,10 @@ "question" ] } + }, + "#": { + "description": "Used for comments or to disable a check\n\n\"ignore-possible-duplicate\": disables a check in `DetectDuplicateFilters` which complains that a filter can be replaced by a filter from the `filters`-library-layer", + "type": "string" } }, "required": [ diff --git a/Docs/Schemas/LayerConfigJsonJSC.ts b/Docs/Schemas/LayerConfigJsonJSC.ts index 1b16d8156..b03cc5a5d 100644 --- a/Docs/Schemas/LayerConfigJsonJSC.ts +++ b/Docs/Schemas/LayerConfigJsonJSC.ts @@ -368,7 +368,7 @@ export default { } }, "filter": { - "description": "All the extra questions for filtering.\nIf a string is given, mapComplete will search in 'filters.json' for the appropriate filter", + "description": "All the extra questions for filtering.\nIf a string is given, mapComplete will search in 'filters.json' for the appropriate filter or will try to parse it as `layername.filterid` and us that one", "anyOf": [ { "type": "array", @@ -437,6 +437,10 @@ export default { "theme-only" ], "type": "string" + }, + "#": { + "description": "Used for comments and/or to disable some checks\n\nno-question-hint-check: disables a check in MiscTagRenderingChecks which complains about 'div', 'span' or 'class=subtle'-HTML elements in the tagRendering", + "type": "string" } }, "required": [ @@ -650,7 +654,6 @@ export default { } }, "required": [ - "class", "path" ] }, @@ -697,7 +700,6 @@ export default { } }, "required": [ - "class", "path" ] }, @@ -767,6 +769,10 @@ export default { "type": "string" } ] + }, + "#": { + "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", + "type": "string" } }, "required": [ @@ -1036,7 +1042,26 @@ export default { "type": "object", "properties": { "question": { - "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" + "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] + }, + "questionHint": { + "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] }, "freeform": { "description": "Allow freeform text input from the user", @@ -1131,7 +1156,26 @@ export default { "type": "object", "properties": { "question": { - "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" + "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] + }, + "questionHint": { + "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] }, "freeform": { "description": "Allow freeform text input from the user", @@ -1290,7 +1334,7 @@ export default { "type": "string" }, "options": { - "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.", + "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.\n\nAn example which searches by name:\n\n```\n{\n \"id\": \"shop-name\",\n \"options\": [\n {\n \"fields\": [\n {\n \"name\": \"search\",\n \"type\": \"string\"\n }\n ],\n \"osmTags\": \"name~i~.*{search}.*\",\n \"question\": {\n \"en\": \"Only show shops with name {search}\",\n }\n }\n ]\n }\n ```", "type": "array", "items": { "type": "object", @@ -1338,6 +1382,10 @@ export default { "question" ] } + }, + "#": { + "description": "Used for comments or to disable a check\n\n\"ignore-possible-duplicate\": disables a check in `DetectDuplicateFilters` which complains that a filter can be replaced by a filter from the `filters`-library-layer", + "type": "string" } }, "required": [ diff --git a/Docs/Schemas/LayoutConfigJson.schema.json b/Docs/Schemas/LayoutConfigJson.schema.json index b1232b4e4..76889c941 100644 --- a/Docs/Schemas/LayoutConfigJson.schema.json +++ b/Docs/Schemas/LayoutConfigJson.schema.json @@ -488,7 +488,6 @@ } }, "required": [ - "class", "path" ] }, @@ -537,7 +536,6 @@ } }, "required": [ - "class", "path" ] }, @@ -607,6 +605,10 @@ "type": "string" } ] + }, + "#": { + "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", + "type": "string" } }, "required": [ @@ -881,7 +883,26 @@ "type": "object", "properties": { "question": { - "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" + "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] + }, + "questionHint": { + "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] }, "freeform": { "description": "Allow freeform text input from the user", @@ -977,7 +998,26 @@ "type": "object", "properties": { "question": { - "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" + "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] + }, + "questionHint": { + "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] }, "freeform": { "description": "Allow freeform text input from the user", @@ -1138,7 +1178,7 @@ "type": "string" }, "options": { - "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.", + "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.\n\nAn example which searches by name:\n\n```\n{\n \"id\": \"shop-name\",\n \"options\": [\n {\n \"fields\": [\n {\n \"name\": \"search\",\n \"type\": \"string\"\n }\n ],\n \"osmTags\": \"name~i~.*{search}.*\",\n \"question\": {\n \"en\": \"Only show shops with name {search}\",\n }\n }\n ]\n }\n ```", "type": "array", "items": { "type": "object", @@ -1186,6 +1226,10 @@ "question" ] } + }, + "#": { + "description": "Used for comments or to disable a check\n\n\"ignore-possible-duplicate\": disables a check in `DetectDuplicateFilters` which complains that a filter can be replaced by a filter from the `filters`-library-layer", + "type": "string" } }, "required": [ @@ -1724,7 +1768,7 @@ } }, "filter": { - "description": "All the extra questions for filtering.\nIf a string is given, mapComplete will search in 'filters.json' for the appropriate filter", + "description": "All the extra questions for filtering.\nIf a string is given, mapComplete will search in 'filters.json' for the appropriate filter or will try to parse it as `layername.filterid` and us that one", "anyOf": [ { "type": "array", @@ -1793,6 +1837,10 @@ "theme-only" ], "type": "string" + }, + "#": { + "description": "Used for comments and/or to disable some checks\n\nno-question-hint-check: disables a check in MiscTagRenderingChecks which complains about 'div', 'span' or 'class=subtle'-HTML elements in the tagRendering", + "type": "string" } }, "required": [ diff --git a/Docs/Schemas/LayoutConfigJsonJSC.ts b/Docs/Schemas/LayoutConfigJsonJSC.ts index 438720be2..2172da51d 100644 --- a/Docs/Schemas/LayoutConfigJsonJSC.ts +++ b/Docs/Schemas/LayoutConfigJsonJSC.ts @@ -484,7 +484,6 @@ export default { } }, "required": [ - "class", "path" ] }, @@ -531,7 +530,6 @@ export default { } }, "required": [ - "class", "path" ] }, @@ -601,6 +599,10 @@ export default { "type": "string" } ] + }, + "#": { + "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", + "type": "string" } }, "required": [ @@ -870,7 +872,26 @@ export default { "type": "object", "properties": { "question": { - "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" + "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] + }, + "questionHint": { + "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] }, "freeform": { "description": "Allow freeform text input from the user", @@ -965,7 +986,26 @@ export default { "type": "object", "properties": { "question": { - "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" + "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] + }, + "questionHint": { + "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] }, "freeform": { "description": "Allow freeform text input from the user", @@ -1124,7 +1164,7 @@ export default { "type": "string" }, "options": { - "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.", + "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.\n\nAn example which searches by name:\n\n```\n{\n \"id\": \"shop-name\",\n \"options\": [\n {\n \"fields\": [\n {\n \"name\": \"search\",\n \"type\": \"string\"\n }\n ],\n \"osmTags\": \"name~i~.*{search}.*\",\n \"question\": {\n \"en\": \"Only show shops with name {search}\",\n }\n }\n ]\n }\n ```", "type": "array", "items": { "type": "object", @@ -1172,6 +1212,10 @@ export default { "question" ] } + }, + "#": { + "description": "Used for comments or to disable a check\n\n\"ignore-possible-duplicate\": disables a check in `DetectDuplicateFilters` which complains that a filter can be replaced by a filter from the `filters`-library-layer", + "type": "string" } }, "required": [ @@ -1704,7 +1748,7 @@ export default { } }, "filter": { - "description": "All the extra questions for filtering.\nIf a string is given, mapComplete will search in 'filters.json' for the appropriate filter", + "description": "All the extra questions for filtering.\nIf a string is given, mapComplete will search in 'filters.json' for the appropriate filter or will try to parse it as `layername.filterid` and us that one", "anyOf": [ { "type": "array", @@ -1773,6 +1817,10 @@ export default { "theme-only" ], "type": "string" + }, + "#": { + "description": "Used for comments and/or to disable some checks\n\nno-question-hint-check: disables a check in MiscTagRenderingChecks which complains about 'div', 'span' or 'class=subtle'-HTML elements in the tagRendering", + "type": "string" } }, "required": [ diff --git a/Docs/Schemas/LineRenderingConfigJson.schema.json b/Docs/Schemas/LineRenderingConfigJson.schema.json index d2934b5a3..c76fd695f 100644 --- a/Docs/Schemas/LineRenderingConfigJson.schema.json +++ b/Docs/Schemas/LineRenderingConfigJson.schema.json @@ -297,7 +297,6 @@ } }, "required": [ - "class", "path" ] }, diff --git a/Docs/Schemas/LineRenderingConfigJsonJSC.ts b/Docs/Schemas/LineRenderingConfigJsonJSC.ts index 60c8989fc..ba475b1ce 100644 --- a/Docs/Schemas/LineRenderingConfigJsonJSC.ts +++ b/Docs/Schemas/LineRenderingConfigJsonJSC.ts @@ -293,7 +293,6 @@ export default { } }, "required": [ - "class", "path" ] }, diff --git a/Docs/Schemas/MappingConfigJson.schema.json b/Docs/Schemas/MappingConfigJson.schema.json index f05a0c7f4..2a33419bb 100644 --- a/Docs/Schemas/MappingConfigJson.schema.json +++ b/Docs/Schemas/MappingConfigJson.schema.json @@ -24,7 +24,6 @@ } }, "required": [ - "class", "path" ] }, @@ -94,6 +93,10 @@ "type": "string" } ] + }, + "#": { + "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", + "type": "string" } }, "required": [ @@ -310,7 +313,6 @@ } }, "required": [ - "class", "path" ] }, diff --git a/Docs/Schemas/MappingConfigJsonJSC.ts b/Docs/Schemas/MappingConfigJsonJSC.ts index ee9704127..d7ae48b03 100644 --- a/Docs/Schemas/MappingConfigJsonJSC.ts +++ b/Docs/Schemas/MappingConfigJsonJSC.ts @@ -24,7 +24,6 @@ export default { } }, "required": [ - "class", "path" ] }, @@ -94,6 +93,10 @@ export default { "type": "string" } ] + }, + "#": { + "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", + "type": "string" } }, "required": [ @@ -306,7 +309,6 @@ export default { } }, "required": [ - "class", "path" ] }, diff --git a/Docs/Schemas/PointRenderingConfigJson.schema.json b/Docs/Schemas/PointRenderingConfigJson.schema.json index 8359175c5..cb5fbcbf2 100644 --- a/Docs/Schemas/PointRenderingConfigJson.schema.json +++ b/Docs/Schemas/PointRenderingConfigJson.schema.json @@ -317,7 +317,6 @@ } }, "required": [ - "class", "path" ] }, diff --git a/Docs/Schemas/PointRenderingConfigJsonJSC.ts b/Docs/Schemas/PointRenderingConfigJsonJSC.ts index a6cae71be..0a63aafea 100644 --- a/Docs/Schemas/PointRenderingConfigJsonJSC.ts +++ b/Docs/Schemas/PointRenderingConfigJsonJSC.ts @@ -313,7 +313,6 @@ export default { } }, "required": [ - "class", "path" ] }, diff --git a/Docs/Schemas/QuestionableTagRenderingConfigJson.schema.json b/Docs/Schemas/QuestionableTagRenderingConfigJson.schema.json index a90b75702..f7529d6d2 100644 --- a/Docs/Schemas/QuestionableTagRenderingConfigJson.schema.json +++ b/Docs/Schemas/QuestionableTagRenderingConfigJson.schema.json @@ -3,7 +3,26 @@ "type": "object", "properties": { "question": { - "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" + "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] + }, + "questionHint": { + "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] }, "freeform": { "description": "Allow freeform text input from the user", @@ -303,7 +322,6 @@ } }, "required": [ - "class", "path" ] }, @@ -352,7 +370,6 @@ } }, "required": [ - "class", "path" ] }, @@ -422,6 +439,10 @@ "type": "string" } ] + }, + "#": { + "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", + "type": "string" } }, "required": [ diff --git a/Docs/Schemas/QuestionableTagRenderingConfigJsonJSC.ts b/Docs/Schemas/QuestionableTagRenderingConfigJsonJSC.ts index 433390afe..8db0039d6 100644 --- a/Docs/Schemas/QuestionableTagRenderingConfigJsonJSC.ts +++ b/Docs/Schemas/QuestionableTagRenderingConfigJsonJSC.ts @@ -3,7 +3,26 @@ export default { "type": "object", "properties": { "question": { - "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" + "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] + }, + "questionHint": { + "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] }, "freeform": { "description": "Allow freeform text input from the user", @@ -299,7 +318,6 @@ export default { } }, "required": [ - "class", "path" ] }, @@ -346,7 +364,6 @@ export default { } }, "required": [ - "class", "path" ] }, @@ -416,6 +433,10 @@ export default { "type": "string" } ] + }, + "#": { + "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", + "type": "string" } }, "required": [ diff --git a/Docs/Schemas/RewritableConfigJson.schema.json b/Docs/Schemas/RewritableConfigJson.schema.json index ce4f58302..477a3f981 100644 --- a/Docs/Schemas/RewritableConfigJson.schema.json +++ b/Docs/Schemas/RewritableConfigJson.schema.json @@ -242,7 +242,6 @@ } }, "required": [ - "class", "path" ] }, @@ -291,7 +290,6 @@ } }, "required": [ - "class", "path" ] }, @@ -361,6 +359,10 @@ "type": "string" } ] + }, + "#": { + "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", + "type": "string" } }, "required": [ diff --git a/Docs/Schemas/RewritableConfigJsonJSC.ts b/Docs/Schemas/RewritableConfigJsonJSC.ts index b9b6318b8..6c1e7fac5 100644 --- a/Docs/Schemas/RewritableConfigJsonJSC.ts +++ b/Docs/Schemas/RewritableConfigJsonJSC.ts @@ -238,7 +238,6 @@ export default { } }, "required": [ - "class", "path" ] }, @@ -285,7 +284,6 @@ export default { } }, "required": [ - "class", "path" ] }, @@ -355,6 +353,10 @@ export default { "type": "string" } ] + }, + "#": { + "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", + "type": "string" } }, "required": [ diff --git a/Docs/Schemas/TagRenderingConfigJson.schema.json b/Docs/Schemas/TagRenderingConfigJson.schema.json index 3c4eff055..1f09125f4 100644 --- a/Docs/Schemas/TagRenderingConfigJson.schema.json +++ b/Docs/Schemas/TagRenderingConfigJson.schema.json @@ -81,7 +81,6 @@ } }, "required": [ - "class", "path" ] }, diff --git a/Docs/Schemas/TagRenderingConfigJsonJSC.ts b/Docs/Schemas/TagRenderingConfigJsonJSC.ts index 135d71152..f3823873a 100644 --- a/Docs/Schemas/TagRenderingConfigJsonJSC.ts +++ b/Docs/Schemas/TagRenderingConfigJsonJSC.ts @@ -81,7 +81,6 @@ export default { } }, "required": [ - "class", "path" ] }, diff --git a/Docs/Schemas/TilesourceConfigJson.schema.json b/Docs/Schemas/TilesourceConfigJson.schema.json index 46c432e90..3fdd289d9 100644 --- a/Docs/Schemas/TilesourceConfigJson.schema.json +++ b/Docs/Schemas/TilesourceConfigJson.schema.json @@ -245,7 +245,6 @@ } }, "required": [ - "class", "path" ] }, @@ -294,7 +293,6 @@ } }, "required": [ - "class", "path" ] }, @@ -364,6 +362,10 @@ "type": "string" } ] + }, + "#": { + "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", + "type": "string" } }, "required": [ @@ -638,7 +640,26 @@ "type": "object", "properties": { "question": { - "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" + "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] + }, + "questionHint": { + "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] }, "freeform": { "description": "Allow freeform text input from the user", @@ -734,7 +755,26 @@ "type": "object", "properties": { "question": { - "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" + "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] + }, + "questionHint": { + "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] }, "freeform": { "description": "Allow freeform text input from the user", @@ -895,7 +935,7 @@ "type": "string" }, "options": { - "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.", + "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.\n\nAn example which searches by name:\n\n```\n{\n \"id\": \"shop-name\",\n \"options\": [\n {\n \"fields\": [\n {\n \"name\": \"search\",\n \"type\": \"string\"\n }\n ],\n \"osmTags\": \"name~i~.*{search}.*\",\n \"question\": {\n \"en\": \"Only show shops with name {search}\",\n }\n }\n ]\n }\n ```", "type": "array", "items": { "type": "object", @@ -943,6 +983,10 @@ "question" ] } + }, + "#": { + "description": "Used for comments or to disable a check\n\n\"ignore-possible-duplicate\": disables a check in `DetectDuplicateFilters` which complains that a filter can be replaced by a filter from the `filters`-library-layer", + "type": "string" } }, "required": [ diff --git a/Docs/Schemas/TilesourceConfigJsonJSC.ts b/Docs/Schemas/TilesourceConfigJsonJSC.ts index 6326bf5b6..36eda59d0 100644 --- a/Docs/Schemas/TilesourceConfigJsonJSC.ts +++ b/Docs/Schemas/TilesourceConfigJsonJSC.ts @@ -241,7 +241,6 @@ export default { } }, "required": [ - "class", "path" ] }, @@ -288,7 +287,6 @@ export default { } }, "required": [ - "class", "path" ] }, @@ -358,6 +356,10 @@ export default { "type": "string" } ] + }, + "#": { + "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", + "type": "string" } }, "required": [ @@ -627,7 +629,26 @@ export default { "type": "object", "properties": { "question": { - "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" + "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] + }, + "questionHint": { + "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] }, "freeform": { "description": "Allow freeform text input from the user", @@ -722,7 +743,26 @@ export default { "type": "object", "properties": { "question": { - "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" + "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] + }, + "questionHint": { + "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", + "anyOf": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ] }, "freeform": { "description": "Allow freeform text input from the user", @@ -881,7 +921,7 @@ export default { "type": "string" }, "options": { - "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.", + "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.\n\nAn example which searches by name:\n\n```\n{\n \"id\": \"shop-name\",\n \"options\": [\n {\n \"fields\": [\n {\n \"name\": \"search\",\n \"type\": \"string\"\n }\n ],\n \"osmTags\": \"name~i~.*{search}.*\",\n \"question\": {\n \"en\": \"Only show shops with name {search}\",\n }\n }\n ]\n }\n ```", "type": "array", "items": { "type": "object", @@ -929,6 +969,10 @@ export default { "question" ] } + }, + "#": { + "description": "Used for comments or to disable a check\n\n\"ignore-possible-duplicate\": disables a check in `DetectDuplicateFilters` which complains that a filter can be replaced by a filter from the `filters`-library-layer", + "type": "string" } }, "required": [ diff --git a/assets/layoutconfigmeta.json b/assets/layoutconfigmeta.json index 936df2964..2a590db97 100644 --- a/assets/layoutconfigmeta.json +++ b/assets/layoutconfigmeta.json @@ -983,7 +983,6 @@ } }, "required": [ - "class", "path" ] }, @@ -1349,7 +1348,6 @@ } }, "required": [ - "class", "path" ] }, @@ -1763,7 +1761,6 @@ } }, "required": [ - "class", "path" ] }, @@ -2218,7 +2215,6 @@ } }, "required": [ - "class", "path" ] }, @@ -2590,7 +2586,6 @@ } }, "required": [ - "class", "path" ] }, @@ -2960,7 +2955,6 @@ } }, "required": [ - "class", "path" ] }, @@ -3330,7 +3324,6 @@ } }, "required": [ - "class", "path" ] }, @@ -3700,7 +3693,6 @@ } }, "required": [ - "class", "path" ] }, @@ -4070,7 +4062,6 @@ } }, "required": [ - "class", "path" ] }, @@ -4448,7 +4439,6 @@ } }, "required": [ - "class", "path" ] }, @@ -4821,7 +4811,6 @@ } }, "required": [ - "class", "path" ] }, @@ -5191,7 +5180,6 @@ } }, "required": [ - "class", "path" ] }, @@ -5561,7 +5549,6 @@ } }, "required": [ - "class", "path" ] }, @@ -5935,7 +5922,6 @@ } }, "required": [ - "class", "path" ] }, @@ -6305,7 +6291,6 @@ } }, "required": [ - "class", "path" ] }, @@ -6675,7 +6660,6 @@ } }, "required": [ - "class", "path" ] }, @@ -7096,7 +7080,6 @@ } }, "required": [ - "class", "path" ] }, @@ -7580,7 +7563,6 @@ } }, "required": [ - "class", "path" ] }, @@ -7977,7 +7959,6 @@ } }, "required": [ - "class", "path" ] }, @@ -8372,7 +8353,6 @@ } }, "required": [ - "class", "path" ] }, @@ -8767,7 +8747,6 @@ } }, "required": [ - "class", "path" ] }, @@ -9162,7 +9141,6 @@ } }, "required": [ - "class", "path" ] }, @@ -9557,7 +9535,6 @@ } }, "required": [ - "class", "path" ] }, @@ -9961,7 +9938,6 @@ } }, "required": [ - "class", "path" ] }, @@ -10359,7 +10335,6 @@ } }, "required": [ - "class", "path" ] }, @@ -10754,7 +10729,6 @@ } }, "required": [ - "class", "path" ] }, @@ -11149,7 +11123,6 @@ } }, "required": [ - "class", "path" ] }, @@ -11548,7 +11521,6 @@ } }, "required": [ - "class", "path" ] }, @@ -11943,7 +11915,6 @@ } }, "required": [ - "class", "path" ] }, @@ -12338,7 +12309,6 @@ } }, "required": [ - "class", "path" ] }, @@ -12742,7 +12712,6 @@ } }, "required": [ - "class", "path" ] }, @@ -13140,7 +13109,6 @@ } }, "required": [ - "class", "path" ] }, @@ -13535,7 +13503,6 @@ } }, "required": [ - "class", "path" ] }, @@ -13930,7 +13897,6 @@ } }, "required": [ - "class", "path" ] }, @@ -14329,7 +14295,6 @@ } }, "required": [ - "class", "path" ] }, @@ -14724,7 +14689,6 @@ } }, "required": [ - "class", "path" ] }, @@ -15119,7 +15083,6 @@ } }, "required": [ - "class", "path" ] }, @@ -15534,7 +15497,6 @@ } }, "required": [ - "class", "path" ] }, @@ -16018,7 +15980,6 @@ } }, "required": [ - "class", "path" ] }, @@ -16415,7 +16376,6 @@ } }, "required": [ - "class", "path" ] }, @@ -16810,7 +16770,6 @@ } }, "required": [ - "class", "path" ] }, @@ -17205,7 +17164,6 @@ } }, "required": [ - "class", "path" ] }, @@ -17600,7 +17558,6 @@ } }, "required": [ - "class", "path" ] }, @@ -17995,7 +17952,6 @@ } }, "required": [ - "class", "path" ] }, @@ -18280,8 +18236,32 @@ "tagRenderings", "question" ], + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" }, + { + "path": [ + "layers", + "tagRenderings", + "questionHint" + ], + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like" + }, { "path": [ "layers", @@ -18452,7 +18432,6 @@ } }, "required": [ - "class", "path" ] }, @@ -18921,6 +18900,16 @@ "type": "object", "description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" }, + { + "path": [ + "layers", + "tagRenderings", + "mappings", + "#" + ], + "type": "string", + "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed" + }, { "path": [ "layers", @@ -19105,8 +19094,33 @@ "override", "question" ], + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" }, + { + "path": [ + "layers", + "tagRenderings", + "override", + "questionHint" + ], + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like" + }, { "path": [ "layers", @@ -19291,7 +19305,6 @@ } }, "required": [ - "class", "path" ] }, @@ -19787,6 +19800,17 @@ "type": "object", "description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" }, + { + "path": [ + "layers", + "tagRenderings", + "override", + "mappings", + "#" + ], + "type": "string", + "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed" + }, { "path": [ "layers", @@ -19984,8 +20008,33 @@ "override", "question" ], + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" }, + { + "path": [ + "layers", + "tagRenderings", + "override", + "questionHint" + ], + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like" + }, { "path": [ "layers", @@ -20170,7 +20219,6 @@ } }, "required": [ - "class", "path" ] }, @@ -20666,6 +20714,17 @@ "type": "object", "description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" }, + { + "path": [ + "layers", + "tagRenderings", + "override", + "mappings", + "#" + ], + "type": "string", + "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed" + }, { "path": [ "layers", @@ -20880,8 +20939,33 @@ "renderings", "question" ], + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" }, + { + "path": [ + "layers", + "tagRenderings", + "renderings", + "questionHint" + ], + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like" + }, { "path": [ "layers", @@ -21066,7 +21150,6 @@ } }, "required": [ - "class", "path" ] }, @@ -21562,6 +21645,17 @@ "type": "object", "description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" }, + { + "path": [ + "layers", + "tagRenderings", + "renderings", + "mappings", + "#" + ], + "type": "string", + "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed" + }, { "path": [ "layers", @@ -21760,8 +21854,34 @@ "override", "question" ], + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" }, + { + "path": [ + "layers", + "tagRenderings", + "renderings", + "override", + "questionHint" + ], + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like" + }, { "path": [ "layers", @@ -21960,7 +22080,6 @@ } }, "required": [ - "class", "path" ] }, @@ -22483,6 +22602,18 @@ "type": "object", "description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" }, + { + "path": [ + "layers", + "tagRenderings", + "renderings", + "override", + "mappings", + "#" + ], + "type": "string", + "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed" + }, { "path": [ "layers", @@ -22717,7 +22848,7 @@ ] } ], - "description": "All the extra questions for filtering.\nIf a string is given, mapComplete will search in 'filters.json' for the appropriate filter" + "description": "All the extra questions for filtering.\nIf a string is given, mapComplete will search in 'filters.json' for the appropriate filter or will try to parse it as `layername.filterid` and us that one" }, { "path": [ @@ -22735,7 +22866,7 @@ "options" ], "type": "array", - "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer." + "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.\n\nAn example which searches by name:\n\n```\n{\n \"id\": \"shop-name\",\n \"options\": [\n {\n \"fields\": [\n {\n \"name\": \"search\",\n \"type\": \"string\"\n }\n ],\n \"osmTags\": \"name~i~.*{search}.*\",\n \"question\": {\n \"en\": \"Only show shops with name {search}\",\n }\n }\n ]\n }\n ```" }, { "path": [ @@ -22889,6 +23020,15 @@ "type": "string", "description": "If name is `search`, use \"_first_comment~.*{search}.*\" as osmTags" }, + { + "path": [ + "layers", + "filter", + "#" + ], + "type": "string", + "description": "Used for comments or to disable a check\n\n\"ignore-possible-duplicate\": disables a check in `DetectDuplicateFilters` which complains that a filter can be replaced by a filter from the `filters`-library-layer" + }, { "path": [ "layers", @@ -23340,6 +23480,14 @@ "type": "string", "description": "If set, synchronizes whether or not this layer is enabled.\n\nno: Do not sync at all, always revert to default\nlocal: keep selection on local storage\ntheme-only: sync via OSM, but this layer will only be toggled in this theme\nglobal: all layers with this ID will be synced accross all themes" }, + { + "path": [ + "layers", + "#" + ], + "type": "string", + "description": "Used for comments and/or to disable some checks\n\nno-question-hint-check: disables a check in MiscTagRenderingChecks which complains about 'div', 'span' or 'class=subtle'-HTML elements in the tagRendering" + }, { "path": [ "layers", diff --git a/assets/questionabletagrenderingconfigmeta.json b/assets/questionabletagrenderingconfigmeta.json index d9b10abc8..ea857adf7 100644 --- a/assets/questionabletagrenderingconfigmeta.json +++ b/assets/questionabletagrenderingconfigmeta.json @@ -8,8 +8,30 @@ "path": [ "question" ], + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" }, + { + "path": [ + "questionHint" + ], + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like" + }, { "path": [ "freeform" @@ -152,7 +174,6 @@ } }, "required": [ - "class", "path" ] }, @@ -567,6 +588,14 @@ "type": "object", "description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" }, + { + "path": [ + "mappings", + "#" + ], + "type": "string", + "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed" + }, { "path": [ "id" diff --git a/assets/tagrenderingconfigmeta.json b/assets/tagrenderingconfigmeta.json index 784157409..2c5662c6f 100644 --- a/assets/tagrenderingconfigmeta.json +++ b/assets/tagrenderingconfigmeta.json @@ -251,7 +251,6 @@ } }, "required": [ - "class", "path" ] },