diff --git a/Docs/Schemas/DeleteConfigJson.schema.json b/Docs/Schemas/DeleteConfigJson.schema.json index 398b28767..c19c64ed7 100644 --- a/Docs/Schemas/DeleteConfigJson.schema.json +++ b/Docs/Schemas/DeleteConfigJson.schema.json @@ -45,12 +45,10 @@ "description": "In some cases, the contributor is not allowed to delete the current feature (e.g. because it isn't a point, the point is referenced by a relation or the user isn't experienced enough).\nTo still offer the user a 'delete'-option, the feature is retagged with these tags. This is a soft deletion, as the point isn't actually removed from OSM but rather marked as 'disused'\nIt is important that the feature will be retagged in such a way that it won't be picked up by the layer anymore!\n\nExample (note that \"amenity=\" erases the 'amenity'-key alltogether):\n```\n{\n \"and\": [\"disussed:amenity=public_bookcase\", \"amenity=\"]\n}\n```\n\nor (notice the use of the ':='-tag to copy the old value of 'shop=*' into 'disused:shop='):\n```\n{\n \"and\": [\"disused:shop:={shop}\", \"shop=\"]\n}\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -68,13 +66,12 @@ }, "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -93,8 +90,7 @@ } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -109,8 +105,7 @@ ], "additionalProperties": false }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { diff --git a/Docs/Schemas/DeleteConfigJsonJSC.ts b/Docs/Schemas/DeleteConfigJsonJSC.ts index 04e4b6114..5e3bb6ada 100644 --- a/Docs/Schemas/DeleteConfigJsonJSC.ts +++ b/Docs/Schemas/DeleteConfigJsonJSC.ts @@ -45,12 +45,10 @@ export default { "description": "In some cases, the contributor is not allowed to delete the current feature (e.g. because it isn't a point, the point is referenced by a relation or the user isn't experienced enough).\nTo still offer the user a 'delete'-option, the feature is retagged with these tags. This is a soft deletion, as the point isn't actually removed from OSM but rather marked as 'disused'\nIt is important that the feature will be retagged in such a way that it won't be picked up by the layer anymore!\n\nExample (note that \"amenity=\" erases the 'amenity'-key alltogether):\n```\n{\n \"and\": [\"disussed:amenity=public_bookcase\", \"amenity=\"]\n}\n```\n\nor (notice the use of the ':='-tag to copy the old value of 'shop=*' into 'disused:shop='):\n```\n{\n \"and\": [\"disused:shop:={shop}\", \"shop=\"]\n}\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -68,13 +66,12 @@ export default { }, "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -93,8 +90,7 @@ export default { } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -108,8 +104,7 @@ export default { "and" ] }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { diff --git a/Docs/Schemas/DenominationConfigJson.schema.json b/Docs/Schemas/DenominationConfigJson.schema.json index cfde14010..a5086168f 100644 --- a/Docs/Schemas/DenominationConfigJson.schema.json +++ b/Docs/Schemas/DenominationConfigJson.schema.json @@ -2,13 +2,12 @@ "$ref": "#/definitions/DenominationConfigJson", "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -27,8 +26,7 @@ } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -43,8 +41,7 @@ ], "additionalProperties": false }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { diff --git a/Docs/Schemas/DenominationConfigJsonJSC.ts b/Docs/Schemas/DenominationConfigJsonJSC.ts index fd7b2494f..acc2c079f 100644 --- a/Docs/Schemas/DenominationConfigJsonJSC.ts +++ b/Docs/Schemas/DenominationConfigJsonJSC.ts @@ -2,13 +2,12 @@ export default { "$ref": "#/definitions/DenominationConfigJson", "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -27,8 +26,7 @@ export default { } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -42,8 +40,7 @@ export default { "and" ] }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { diff --git a/Docs/Schemas/ExtraLinkConfigJson.schema.json b/Docs/Schemas/ExtraLinkConfigJson.schema.json index 157922a93..d295eea17 100644 --- a/Docs/Schemas/ExtraLinkConfigJson.schema.json +++ b/Docs/Schemas/ExtraLinkConfigJson.schema.json @@ -29,13 +29,12 @@ ], "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -54,8 +53,7 @@ } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -70,8 +68,7 @@ ], "additionalProperties": false }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { diff --git a/Docs/Schemas/ExtraLinkConfigJsonJSC.ts b/Docs/Schemas/ExtraLinkConfigJsonJSC.ts index 762e6f4ad..a5352509c 100644 --- a/Docs/Schemas/ExtraLinkConfigJsonJSC.ts +++ b/Docs/Schemas/ExtraLinkConfigJsonJSC.ts @@ -29,13 +29,12 @@ export default { ], "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -54,8 +53,7 @@ export default { } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -69,8 +67,7 @@ export default { "and" ] }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { diff --git a/Docs/Schemas/FilterConfigJson.schema.json b/Docs/Schemas/FilterConfigJson.schema.json index 3158c033b..09de5d107 100644 --- a/Docs/Schemas/FilterConfigJson.schema.json +++ b/Docs/Schemas/FilterConfigJson.schema.json @@ -13,15 +13,13 @@ "properties": { "question": {}, "osmTags": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -66,13 +64,12 @@ ], "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -91,8 +88,7 @@ } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -107,8 +103,7 @@ ], "additionalProperties": false }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { diff --git a/Docs/Schemas/FilterConfigJsonJSC.ts b/Docs/Schemas/FilterConfigJsonJSC.ts index 2f41e9521..3a6c7f10c 100644 --- a/Docs/Schemas/FilterConfigJsonJSC.ts +++ b/Docs/Schemas/FilterConfigJsonJSC.ts @@ -13,15 +13,13 @@ export default { "properties": { "question": {}, "osmTags": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -66,13 +64,12 @@ export default { ], "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -91,8 +88,7 @@ export default { } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -106,8 +102,7 @@ export default { "and" ] }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { diff --git a/Docs/Schemas/LayerConfigJson.schema.json b/Docs/Schemas/LayerConfigJson.schema.json index c5cb22f01..65999a652 100644 --- a/Docs/Schemas/LayerConfigJson.schema.json +++ b/Docs/Schemas/LayerConfigJson.schema.json @@ -29,17 +29,17 @@ ] }, "source": { - "description": "This determines where the data for the layer is fetched: from OSM or from an external geojson dataset.\n\nIf no 'geojson' is defined, data will be fetched from overpass and the OSM-API.\n\nEvery source _must_ define which tags _must_ be present in order to be picked up.\n\nNote: a source must always be defined. 'special' is only allowed if this is a builtin-layer", + "description": "Question: Where should the data be fetched from?\n\nThis determines where the data for the layer is fetched: from OSM or from an external geojson dataset.\n\nIf no 'geojson' is defined, data will be fetched from overpass and the OSM-API.\n\nEvery source _must_ define which tags _must_ be present in order to be picked up.\n\nNote: a source must always be defined. 'special' is only allowed if this is a builtin-layer\n\ntypes: Load data with specific tags from OpenStreetMap ; Load data from an external geojson source ;\ngroup: basic", "anyOf": [ { "type": "object", "properties": { "osmTags": { "$ref": "#/definitions/TagConfigJson", - "description": "Every source must set which tags have to be present in order to load the given layer." + "description": "question: Which tags must be present on the feature to show it in this layer?\nEvery source must set which tags have to be present in order to load the given layer." }, "maxCacheAge": { - "description": "The maximum amount of seconds that a tile is allowed to linger in the cache", + "description": "question: How long (in seconds) is the data allowed to remain cached until it must be refreshed?\nThe maximum amount of seconds that a tile is allowed to linger in the cache\n\ntype: nat", "type": "number" } }, @@ -99,12 +99,10 @@ "description": "If set, only features matching this extra tag will be shown.\nThis is useful to hide certain features from view.\n\nThe default value is 'yes'\n\ngroup: advanced", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -116,7 +114,7 @@ "type": "boolean" }, "minzoom": { - "description": "The minimum needed zoomlevel required to start loading and displaying the data.\nThis can be used to only show common features (e.g. a bicycle parking) only when the map is zoomed in very much (17).\nThis prevents cluttering the map with thousands of parkings if one is looking to an entire city.\n\nDefault: 0\n\ngroup: basic\nquestion: At what zoom level should features of the layer be shown?\nifunset: Always load this layer, even if the entire world is in view.", + "description": "The minimum needed zoomlevel required to start loading and displaying the data.\nThis can be used to only show common features (e.g. a bicycle parking) only when the map is zoomed in very much (17).\nThis prevents cluttering the map with thousands of parkings if one is looking to an entire city.\n\nDefault: 0\ngroup: basic\ntype: nat\nquestion: At what zoom level should features of the layer be shown?\nifunset: Always load this layer, even if the entire world is in view.", "type": "number" }, "shownByDefault": { @@ -239,53 +237,23 @@ "type": "string" } }, - "preciseInput": { - "description": "If set, the user will prompted to confirm the location before actually adding the data.\nThis will be with a 'drag crosshair'-method.\n\nIf 'preferredBackgroundCategory' is set, the element will attempt to pick a background layer of that category.", + "snapToLayer": { + "description": "If specified, these layers will be shown to and the new point will be snapped towards it", "anyOf": [ { - "type": "object", - "properties": { - "preferredBackground": { - "description": "The type of background picture", - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ] - }, - "snapToLayer": { - "description": "If specified, these layers will be shown to and the new point will be snapped towards it", - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ] - }, - "maxSnapDistance": { - "description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10", - "type": "number" - } + "type": "array", + "items": { + "type": "string" } }, { - "enum": [ - true - ], - "type": "boolean" + "type": "string" } ] + }, + "maxSnapDistance": { + "description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10", + "type": "number" } }, "required": [ @@ -445,13 +413,12 @@ ], "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -470,8 +437,7 @@ } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -486,8 +452,7 @@ ], "additionalProperties": false }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { @@ -655,12 +620,10 @@ "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -671,12 +634,10 @@ "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -760,7 +721,7 @@ "properties": { "if": { "$ref": "#/definitions/TagConfigJson", - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" }, "then": { "description": "Shown if the 'if is fulfilled\nType: rendered", @@ -801,12 +762,10 @@ "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -820,12 +779,10 @@ "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -847,12 +804,10 @@ "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -904,7 +859,7 @@ "properties": { "if": { "$ref": "#/definitions/TagConfigJson", - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" }, "then": { "description": "Badge to show\nType: icon", @@ -935,6 +890,17 @@ } ] }, + "anchor": { + "description": "question: What is the anchorpoint of the icon?\n\nThis matches the geographical point with a location on the icon.\nFor example, a feature attached to the ground can use 'bottom' as zooming in will give the appearance of being anchored to a fixed location.", + "anyOf": [ + { + "$ref": "#/definitions/TagRenderingConfigJson" + }, + { + "type": "string" + } + ] + }, "rotation": { "description": "The rotation of an icon, useful for e.g. directions.\nUsage: as if it were a css property for 'rotate', thus has to end with 'deg', e.g. `90deg`, `{direction}deg`, `calc(90deg - {camera:direction}deg)``", "anyOf": [ @@ -1321,12 +1287,10 @@ "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1337,12 +1301,10 @@ "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1504,12 +1466,10 @@ "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1520,12 +1480,10 @@ "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1611,15 +1569,13 @@ "properties": { "question": {}, "osmTags": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1711,12 +1667,10 @@ "description": "In some cases, the contributor is not allowed to delete the current feature (e.g. because it isn't a point, the point is referenced by a relation or the user isn't experienced enough).\nTo still offer the user a 'delete'-option, the feature is retagged with these tags. This is a soft deletion, as the point isn't actually removed from OSM but rather marked as 'disused'\nIt is important that the feature will be retagged in such a way that it won't be picked up by the layer anymore!\n\nExample (note that \"amenity=\" erases the 'amenity'-key alltogether):\n```\n{\n \"and\": [\"disussed:amenity=public_bookcase\", \"amenity=\"]\n}\n```\n\nor (notice the use of the ':='-tag to copy the old value of 'shop=*' into 'disused:shop='):\n```\n{\n \"and\": [\"disused:shop:={shop}\", \"shop=\"]\n}\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" diff --git a/Docs/Schemas/LayerConfigJsonJSC.ts b/Docs/Schemas/LayerConfigJsonJSC.ts index 8861e5ecc..4dfd524a9 100644 --- a/Docs/Schemas/LayerConfigJsonJSC.ts +++ b/Docs/Schemas/LayerConfigJsonJSC.ts @@ -29,17 +29,17 @@ export default { ] }, "source": { - "description": "This determines where the data for the layer is fetched: from OSM or from an external geojson dataset.\n\nIf no 'geojson' is defined, data will be fetched from overpass and the OSM-API.\n\nEvery source _must_ define which tags _must_ be present in order to be picked up.\n\nNote: a source must always be defined. 'special' is only allowed if this is a builtin-layer", + "description": "Question: Where should the data be fetched from?\n\nThis determines where the data for the layer is fetched: from OSM or from an external geojson dataset.\n\nIf no 'geojson' is defined, data will be fetched from overpass and the OSM-API.\n\nEvery source _must_ define which tags _must_ be present in order to be picked up.\n\nNote: a source must always be defined. 'special' is only allowed if this is a builtin-layer\n\ntypes: Load data with specific tags from OpenStreetMap ; Load data from an external geojson source ;\ngroup: basic", "anyOf": [ { "type": "object", "properties": { "osmTags": { "$ref": "#/definitions/TagConfigJson", - "description": "Every source must set which tags have to be present in order to load the given layer." + "description": "question: Which tags must be present on the feature to show it in this layer?\nEvery source must set which tags have to be present in order to load the given layer." }, "maxCacheAge": { - "description": "The maximum amount of seconds that a tile is allowed to linger in the cache", + "description": "question: How long (in seconds) is the data allowed to remain cached until it must be refreshed?\nThe maximum amount of seconds that a tile is allowed to linger in the cache\n\ntype: nat", "type": "number" } }, @@ -99,12 +99,10 @@ export default { "description": "If set, only features matching this extra tag will be shown.\nThis is useful to hide certain features from view.\n\nThe default value is 'yes'\n\ngroup: advanced", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -116,7 +114,7 @@ export default { "type": "boolean" }, "minzoom": { - "description": "The minimum needed zoomlevel required to start loading and displaying the data.\nThis can be used to only show common features (e.g. a bicycle parking) only when the map is zoomed in very much (17).\nThis prevents cluttering the map with thousands of parkings if one is looking to an entire city.\n\nDefault: 0\n\ngroup: basic\nquestion: At what zoom level should features of the layer be shown?\nifunset: Always load this layer, even if the entire world is in view.", + "description": "The minimum needed zoomlevel required to start loading and displaying the data.\nThis can be used to only show common features (e.g. a bicycle parking) only when the map is zoomed in very much (17).\nThis prevents cluttering the map with thousands of parkings if one is looking to an entire city.\n\nDefault: 0\ngroup: basic\ntype: nat\nquestion: At what zoom level should features of the layer be shown?\nifunset: Always load this layer, even if the entire world is in view.", "type": "number" }, "shownByDefault": { @@ -239,53 +237,23 @@ export default { "type": "string" } }, - "preciseInput": { - "description": "If set, the user will prompted to confirm the location before actually adding the data.\nThis will be with a 'drag crosshair'-method.\n\nIf 'preferredBackgroundCategory' is set, the element will attempt to pick a background layer of that category.", + "snapToLayer": { + "description": "If specified, these layers will be shown to and the new point will be snapped towards it", "anyOf": [ { - "type": "object", - "properties": { - "preferredBackground": { - "description": "The type of background picture", - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ] - }, - "snapToLayer": { - "description": "If specified, these layers will be shown to and the new point will be snapped towards it", - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ] - }, - "maxSnapDistance": { - "description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10", - "type": "number" - } + "type": "array", + "items": { + "type": "string" } }, { - "enum": [ - true - ], - "type": "boolean" + "type": "string" } ] + }, + "maxSnapDistance": { + "description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10", + "type": "number" } }, "required": [ @@ -445,13 +413,12 @@ export default { ], "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -470,8 +437,7 @@ export default { } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -485,8 +451,7 @@ export default { "and" ] }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { @@ -650,12 +615,10 @@ export default { "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -666,12 +629,10 @@ export default { "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -753,7 +714,7 @@ export default { "properties": { "if": { "$ref": "#/definitions/TagConfigJson", - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" }, "then": { "description": "Shown if the 'if is fulfilled\nType: rendered", @@ -794,12 +755,10 @@ export default { "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -813,12 +772,10 @@ export default { "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -840,12 +797,10 @@ export default { "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -895,7 +850,7 @@ export default { "properties": { "if": { "$ref": "#/definitions/TagConfigJson", - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" }, "then": { "description": "Badge to show\nType: icon", @@ -926,6 +881,17 @@ export default { } ] }, + "anchor": { + "description": "question: What is the anchorpoint of the icon?\n\nThis matches the geographical point with a location on the icon.\nFor example, a feature attached to the ground can use 'bottom' as zooming in will give the appearance of being anchored to a fixed location.", + "anyOf": [ + { + "$ref": "#/definitions/TagRenderingConfigJson" + }, + { + "type": "string" + } + ] + }, "rotation": { "description": "The rotation of an icon, useful for e.g. directions.\nUsage: as if it were a css property for 'rotate', thus has to end with 'deg', e.g. `90deg`, `{direction}deg`, `calc(90deg - {camera:direction}deg)``", "anyOf": [ @@ -1309,12 +1275,10 @@ export default { "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1325,12 +1289,10 @@ export default { "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1491,12 +1453,10 @@ export default { "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1507,12 +1467,10 @@ export default { "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1596,15 +1554,13 @@ export default { "properties": { "question": {}, "osmTags": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1695,12 +1651,10 @@ export default { "description": "In some cases, the contributor is not allowed to delete the current feature (e.g. because it isn't a point, the point is referenced by a relation or the user isn't experienced enough).\nTo still offer the user a 'delete'-option, the feature is retagged with these tags. This is a soft deletion, as the point isn't actually removed from OSM but rather marked as 'disused'\nIt is important that the feature will be retagged in such a way that it won't be picked up by the layer anymore!\n\nExample (note that \"amenity=\" erases the 'amenity'-key alltogether):\n```\n{\n \"and\": [\"disussed:amenity=public_bookcase\", \"amenity=\"]\n}\n```\n\nor (notice the use of the ':='-tag to copy the old value of 'shop=*' into 'disused:shop='):\n```\n{\n \"and\": [\"disused:shop:={shop}\", \"shop=\"]\n}\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" diff --git a/Docs/Schemas/LayoutConfigJson.schema.json b/Docs/Schemas/LayoutConfigJson.schema.json index 7c898977c..95e5bc262 100644 --- a/Docs/Schemas/LayoutConfigJson.schema.json +++ b/Docs/Schemas/LayoutConfigJson.schema.json @@ -306,13 +306,12 @@ ], "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -331,8 +330,7 @@ } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -347,8 +345,7 @@ ], "additionalProperties": false }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { @@ -516,12 +513,10 @@ "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -532,12 +527,10 @@ "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -621,7 +614,7 @@ "properties": { "if": { "$ref": "#/definitions/TagConfigJson", - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" }, "then": { "description": "Shown if the 'if is fulfilled\nType: rendered", @@ -662,12 +655,10 @@ "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -681,12 +672,10 @@ "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -708,12 +697,10 @@ "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -765,7 +752,7 @@ "properties": { "if": { "$ref": "#/definitions/TagConfigJson", - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" }, "then": { "description": "Badge to show\nType: icon", @@ -796,6 +783,17 @@ } ] }, + "anchor": { + "description": "question: What is the anchorpoint of the icon?\n\nThis matches the geographical point with a location on the icon.\nFor example, a feature attached to the ground can use 'bottom' as zooming in will give the appearance of being anchored to a fixed location.", + "anyOf": [ + { + "$ref": "#/definitions/TagRenderingConfigJson" + }, + { + "type": "string" + } + ] + }, "rotation": { "description": "The rotation of an icon, useful for e.g. directions.\nUsage: as if it were a css property for 'rotate', thus has to end with 'deg', e.g. `90deg`, `{direction}deg`, `calc(90deg - {camera:direction}deg)``", "anyOf": [ @@ -1182,12 +1180,10 @@ "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1198,12 +1194,10 @@ "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1365,12 +1359,10 @@ "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1381,12 +1373,10 @@ "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1472,15 +1462,13 @@ "properties": { "question": {}, "osmTags": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1572,12 +1560,10 @@ "description": "In some cases, the contributor is not allowed to delete the current feature (e.g. because it isn't a point, the point is referenced by a relation or the user isn't experienced enough).\nTo still offer the user a 'delete'-option, the feature is retagged with these tags. This is a soft deletion, as the point isn't actually removed from OSM but rather marked as 'disused'\nIt is important that the feature will be retagged in such a way that it won't be picked up by the layer anymore!\n\nExample (note that \"amenity=\" erases the 'amenity'-key alltogether):\n```\n{\n \"and\": [\"disussed:amenity=public_bookcase\", \"amenity=\"]\n}\n```\n\nor (notice the use of the ':='-tag to copy the old value of 'shop=*' into 'disused:shop='):\n```\n{\n \"and\": [\"disused:shop:={shop}\", \"shop=\"]\n}\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1740,17 +1726,17 @@ ] }, "source": { - "description": "This determines where the data for the layer is fetched: from OSM or from an external geojson dataset.\n\nIf no 'geojson' is defined, data will be fetched from overpass and the OSM-API.\n\nEvery source _must_ define which tags _must_ be present in order to be picked up.\n\nNote: a source must always be defined. 'special' is only allowed if this is a builtin-layer", + "description": "Question: Where should the data be fetched from?\n\nThis determines where the data for the layer is fetched: from OSM or from an external geojson dataset.\n\nIf no 'geojson' is defined, data will be fetched from overpass and the OSM-API.\n\nEvery source _must_ define which tags _must_ be present in order to be picked up.\n\nNote: a source must always be defined. 'special' is only allowed if this is a builtin-layer\n\ntypes: Load data with specific tags from OpenStreetMap ; Load data from an external geojson source ;\ngroup: basic", "anyOf": [ { "type": "object", "properties": { "osmTags": { "$ref": "#/definitions/TagConfigJson", - "description": "Every source must set which tags have to be present in order to load the given layer." + "description": "question: Which tags must be present on the feature to show it in this layer?\nEvery source must set which tags have to be present in order to load the given layer." }, "maxCacheAge": { - "description": "The maximum amount of seconds that a tile is allowed to linger in the cache", + "description": "question: How long (in seconds) is the data allowed to remain cached until it must be refreshed?\nThe maximum amount of seconds that a tile is allowed to linger in the cache\n\ntype: nat", "type": "number" } }, @@ -1810,12 +1796,10 @@ "description": "If set, only features matching this extra tag will be shown.\nThis is useful to hide certain features from view.\n\nThe default value is 'yes'\n\ngroup: advanced", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1827,7 +1811,7 @@ "type": "boolean" }, "minzoom": { - "description": "The minimum needed zoomlevel required to start loading and displaying the data.\nThis can be used to only show common features (e.g. a bicycle parking) only when the map is zoomed in very much (17).\nThis prevents cluttering the map with thousands of parkings if one is looking to an entire city.\n\nDefault: 0\n\ngroup: basic\nquestion: At what zoom level should features of the layer be shown?\nifunset: Always load this layer, even if the entire world is in view.", + "description": "The minimum needed zoomlevel required to start loading and displaying the data.\nThis can be used to only show common features (e.g. a bicycle parking) only when the map is zoomed in very much (17).\nThis prevents cluttering the map with thousands of parkings if one is looking to an entire city.\n\nDefault: 0\ngroup: basic\ntype: nat\nquestion: At what zoom level should features of the layer be shown?\nifunset: Always load this layer, even if the entire world is in view.", "type": "number" }, "shownByDefault": { @@ -1950,53 +1934,23 @@ "type": "string" } }, - "preciseInput": { - "description": "If set, the user will prompted to confirm the location before actually adding the data.\nThis will be with a 'drag crosshair'-method.\n\nIf 'preferredBackgroundCategory' is set, the element will attempt to pick a background layer of that category.", + "snapToLayer": { + "description": "If specified, these layers will be shown to and the new point will be snapped towards it", "anyOf": [ { - "type": "object", - "properties": { - "preferredBackground": { - "description": "The type of background picture", - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ] - }, - "snapToLayer": { - "description": "If specified, these layers will be shown to and the new point will be snapped towards it", - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ] - }, - "maxSnapDistance": { - "description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10", - "type": "number" - } + "type": "array", + "items": { + "type": "string" } }, { - "enum": [ - true - ], - "type": "boolean" + "type": "string" } ] + }, + "maxSnapDistance": { + "description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10", + "type": "number" } }, "required": [ @@ -2186,17 +2140,17 @@ ] }, "source": { - "description": "This determines where the data for the layer is fetched: from OSM or from an external geojson dataset.\n\nIf no 'geojson' is defined, data will be fetched from overpass and the OSM-API.\n\nEvery source _must_ define which tags _must_ be present in order to be picked up.\n\nNote: a source must always be defined. 'special' is only allowed if this is a builtin-layer", + "description": "Question: Where should the data be fetched from?\n\nThis determines where the data for the layer is fetched: from OSM or from an external geojson dataset.\n\nIf no 'geojson' is defined, data will be fetched from overpass and the OSM-API.\n\nEvery source _must_ define which tags _must_ be present in order to be picked up.\n\nNote: a source must always be defined. 'special' is only allowed if this is a builtin-layer\n\ntypes: Load data with specific tags from OpenStreetMap ; Load data from an external geojson source ;\ngroup: basic", "anyOf": [ { "type": "object", "properties": { "osmTags": { "$ref": "#/definitions/TagConfigJson", - "description": "Every source must set which tags have to be present in order to load the given layer." + "description": "question: Which tags must be present on the feature to show it in this layer?\nEvery source must set which tags have to be present in order to load the given layer." }, "maxCacheAge": { - "description": "The maximum amount of seconds that a tile is allowed to linger in the cache", + "description": "question: How long (in seconds) is the data allowed to remain cached until it must be refreshed?\nThe maximum amount of seconds that a tile is allowed to linger in the cache\n\ntype: nat", "type": "number" } }, @@ -2256,12 +2210,10 @@ "description": "If set, only features matching this extra tag will be shown.\nThis is useful to hide certain features from view.\n\nThe default value is 'yes'\n\ngroup: advanced", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -2273,7 +2225,7 @@ "type": "boolean" }, "minzoom": { - "description": "The minimum needed zoomlevel required to start loading and displaying the data.\nThis can be used to only show common features (e.g. a bicycle parking) only when the map is zoomed in very much (17).\nThis prevents cluttering the map with thousands of parkings if one is looking to an entire city.\n\nDefault: 0\n\ngroup: basic\nquestion: At what zoom level should features of the layer be shown?\nifunset: Always load this layer, even if the entire world is in view.", + "description": "The minimum needed zoomlevel required to start loading and displaying the data.\nThis can be used to only show common features (e.g. a bicycle parking) only when the map is zoomed in very much (17).\nThis prevents cluttering the map with thousands of parkings if one is looking to an entire city.\n\nDefault: 0\ngroup: basic\ntype: nat\nquestion: At what zoom level should features of the layer be shown?\nifunset: Always load this layer, even if the entire world is in view.", "type": "number" }, "shownByDefault": { @@ -2396,53 +2348,23 @@ "type": "string" } }, - "preciseInput": { - "description": "If set, the user will prompted to confirm the location before actually adding the data.\nThis will be with a 'drag crosshair'-method.\n\nIf 'preferredBackgroundCategory' is set, the element will attempt to pick a background layer of that category.", + "snapToLayer": { + "description": "If specified, these layers will be shown to and the new point will be snapped towards it", "anyOf": [ { - "type": "object", - "properties": { - "preferredBackground": { - "description": "The type of background picture", - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ] - }, - "snapToLayer": { - "description": "If specified, these layers will be shown to and the new point will be snapped towards it", - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ] - }, - "maxSnapDistance": { - "description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10", - "type": "number" - } + "type": "array", + "items": { + "type": "string" } }, { - "enum": [ - true - ], - "type": "boolean" + "type": "string" } ] + }, + "maxSnapDistance": { + "description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10", + "type": "number" } }, "required": [ diff --git a/Docs/Schemas/LayoutConfigJsonJSC.ts b/Docs/Schemas/LayoutConfigJsonJSC.ts index 397efe931..35f94073f 100644 --- a/Docs/Schemas/LayoutConfigJsonJSC.ts +++ b/Docs/Schemas/LayoutConfigJsonJSC.ts @@ -306,13 +306,12 @@ export default { ], "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -331,8 +330,7 @@ export default { } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -346,8 +344,7 @@ export default { "and" ] }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { @@ -511,12 +508,10 @@ export default { "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -527,12 +522,10 @@ export default { "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -614,7 +607,7 @@ export default { "properties": { "if": { "$ref": "#/definitions/TagConfigJson", - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" }, "then": { "description": "Shown if the 'if is fulfilled\nType: rendered", @@ -655,12 +648,10 @@ export default { "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -674,12 +665,10 @@ export default { "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -701,12 +690,10 @@ export default { "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -756,7 +743,7 @@ export default { "properties": { "if": { "$ref": "#/definitions/TagConfigJson", - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" }, "then": { "description": "Badge to show\nType: icon", @@ -787,6 +774,17 @@ export default { } ] }, + "anchor": { + "description": "question: What is the anchorpoint of the icon?\n\nThis matches the geographical point with a location on the icon.\nFor example, a feature attached to the ground can use 'bottom' as zooming in will give the appearance of being anchored to a fixed location.", + "anyOf": [ + { + "$ref": "#/definitions/TagRenderingConfigJson" + }, + { + "type": "string" + } + ] + }, "rotation": { "description": "The rotation of an icon, useful for e.g. directions.\nUsage: as if it were a css property for 'rotate', thus has to end with 'deg', e.g. `90deg`, `{direction}deg`, `calc(90deg - {camera:direction}deg)``", "anyOf": [ @@ -1170,12 +1168,10 @@ export default { "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1186,12 +1182,10 @@ export default { "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1352,12 +1346,10 @@ export default { "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1368,12 +1360,10 @@ export default { "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1457,15 +1447,13 @@ export default { "properties": { "question": {}, "osmTags": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1556,12 +1544,10 @@ export default { "description": "In some cases, the contributor is not allowed to delete the current feature (e.g. because it isn't a point, the point is referenced by a relation or the user isn't experienced enough).\nTo still offer the user a 'delete'-option, the feature is retagged with these tags. This is a soft deletion, as the point isn't actually removed from OSM but rather marked as 'disused'\nIt is important that the feature will be retagged in such a way that it won't be picked up by the layer anymore!\n\nExample (note that \"amenity=\" erases the 'amenity'-key alltogether):\n```\n{\n \"and\": [\"disussed:amenity=public_bookcase\", \"amenity=\"]\n}\n```\n\nor (notice the use of the ':='-tag to copy the old value of 'shop=*' into 'disused:shop='):\n```\n{\n \"and\": [\"disused:shop:={shop}\", \"shop=\"]\n}\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1719,17 +1705,17 @@ export default { ] }, "source": { - "description": "This determines where the data for the layer is fetched: from OSM or from an external geojson dataset.\n\nIf no 'geojson' is defined, data will be fetched from overpass and the OSM-API.\n\nEvery source _must_ define which tags _must_ be present in order to be picked up.\n\nNote: a source must always be defined. 'special' is only allowed if this is a builtin-layer", + "description": "Question: Where should the data be fetched from?\n\nThis determines where the data for the layer is fetched: from OSM or from an external geojson dataset.\n\nIf no 'geojson' is defined, data will be fetched from overpass and the OSM-API.\n\nEvery source _must_ define which tags _must_ be present in order to be picked up.\n\nNote: a source must always be defined. 'special' is only allowed if this is a builtin-layer\n\ntypes: Load data with specific tags from OpenStreetMap ; Load data from an external geojson source ;\ngroup: basic", "anyOf": [ { "type": "object", "properties": { "osmTags": { "$ref": "#/definitions/TagConfigJson", - "description": "Every source must set which tags have to be present in order to load the given layer." + "description": "question: Which tags must be present on the feature to show it in this layer?\nEvery source must set which tags have to be present in order to load the given layer." }, "maxCacheAge": { - "description": "The maximum amount of seconds that a tile is allowed to linger in the cache", + "description": "question: How long (in seconds) is the data allowed to remain cached until it must be refreshed?\nThe maximum amount of seconds that a tile is allowed to linger in the cache\n\ntype: nat", "type": "number" } }, @@ -1789,12 +1775,10 @@ export default { "description": "If set, only features matching this extra tag will be shown.\nThis is useful to hide certain features from view.\n\nThe default value is 'yes'\n\ngroup: advanced", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1806,7 +1790,7 @@ export default { "type": "boolean" }, "minzoom": { - "description": "The minimum needed zoomlevel required to start loading and displaying the data.\nThis can be used to only show common features (e.g. a bicycle parking) only when the map is zoomed in very much (17).\nThis prevents cluttering the map with thousands of parkings if one is looking to an entire city.\n\nDefault: 0\n\ngroup: basic\nquestion: At what zoom level should features of the layer be shown?\nifunset: Always load this layer, even if the entire world is in view.", + "description": "The minimum needed zoomlevel required to start loading and displaying the data.\nThis can be used to only show common features (e.g. a bicycle parking) only when the map is zoomed in very much (17).\nThis prevents cluttering the map with thousands of parkings if one is looking to an entire city.\n\nDefault: 0\ngroup: basic\ntype: nat\nquestion: At what zoom level should features of the layer be shown?\nifunset: Always load this layer, even if the entire world is in view.", "type": "number" }, "shownByDefault": { @@ -1929,53 +1913,23 @@ export default { "type": "string" } }, - "preciseInput": { - "description": "If set, the user will prompted to confirm the location before actually adding the data.\nThis will be with a 'drag crosshair'-method.\n\nIf 'preferredBackgroundCategory' is set, the element will attempt to pick a background layer of that category.", + "snapToLayer": { + "description": "If specified, these layers will be shown to and the new point will be snapped towards it", "anyOf": [ { - "type": "object", - "properties": { - "preferredBackground": { - "description": "The type of background picture", - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ] - }, - "snapToLayer": { - "description": "If specified, these layers will be shown to and the new point will be snapped towards it", - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ] - }, - "maxSnapDistance": { - "description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10", - "type": "number" - } + "type": "array", + "items": { + "type": "string" } }, { - "enum": [ - true - ], - "type": "boolean" + "type": "string" } ] + }, + "maxSnapDistance": { + "description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10", + "type": "number" } }, "required": [ @@ -2164,17 +2118,17 @@ export default { ] }, "source": { - "description": "This determines where the data for the layer is fetched: from OSM or from an external geojson dataset.\n\nIf no 'geojson' is defined, data will be fetched from overpass and the OSM-API.\n\nEvery source _must_ define which tags _must_ be present in order to be picked up.\n\nNote: a source must always be defined. 'special' is only allowed if this is a builtin-layer", + "description": "Question: Where should the data be fetched from?\n\nThis determines where the data for the layer is fetched: from OSM or from an external geojson dataset.\n\nIf no 'geojson' is defined, data will be fetched from overpass and the OSM-API.\n\nEvery source _must_ define which tags _must_ be present in order to be picked up.\n\nNote: a source must always be defined. 'special' is only allowed if this is a builtin-layer\n\ntypes: Load data with specific tags from OpenStreetMap ; Load data from an external geojson source ;\ngroup: basic", "anyOf": [ { "type": "object", "properties": { "osmTags": { "$ref": "#/definitions/TagConfigJson", - "description": "Every source must set which tags have to be present in order to load the given layer." + "description": "question: Which tags must be present on the feature to show it in this layer?\nEvery source must set which tags have to be present in order to load the given layer." }, "maxCacheAge": { - "description": "The maximum amount of seconds that a tile is allowed to linger in the cache", + "description": "question: How long (in seconds) is the data allowed to remain cached until it must be refreshed?\nThe maximum amount of seconds that a tile is allowed to linger in the cache\n\ntype: nat", "type": "number" } }, @@ -2234,12 +2188,10 @@ export default { "description": "If set, only features matching this extra tag will be shown.\nThis is useful to hide certain features from view.\n\nThe default value is 'yes'\n\ngroup: advanced", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -2251,7 +2203,7 @@ export default { "type": "boolean" }, "minzoom": { - "description": "The minimum needed zoomlevel required to start loading and displaying the data.\nThis can be used to only show common features (e.g. a bicycle parking) only when the map is zoomed in very much (17).\nThis prevents cluttering the map with thousands of parkings if one is looking to an entire city.\n\nDefault: 0\n\ngroup: basic\nquestion: At what zoom level should features of the layer be shown?\nifunset: Always load this layer, even if the entire world is in view.", + "description": "The minimum needed zoomlevel required to start loading and displaying the data.\nThis can be used to only show common features (e.g. a bicycle parking) only when the map is zoomed in very much (17).\nThis prevents cluttering the map with thousands of parkings if one is looking to an entire city.\n\nDefault: 0\ngroup: basic\ntype: nat\nquestion: At what zoom level should features of the layer be shown?\nifunset: Always load this layer, even if the entire world is in view.", "type": "number" }, "shownByDefault": { @@ -2374,53 +2326,23 @@ export default { "type": "string" } }, - "preciseInput": { - "description": "If set, the user will prompted to confirm the location before actually adding the data.\nThis will be with a 'drag crosshair'-method.\n\nIf 'preferredBackgroundCategory' is set, the element will attempt to pick a background layer of that category.", + "snapToLayer": { + "description": "If specified, these layers will be shown to and the new point will be snapped towards it", "anyOf": [ { - "type": "object", - "properties": { - "preferredBackground": { - "description": "The type of background picture", - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ] - }, - "snapToLayer": { - "description": "If specified, these layers will be shown to and the new point will be snapped towards it", - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ] - }, - "maxSnapDistance": { - "description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10", - "type": "number" - } + "type": "array", + "items": { + "type": "string" } }, { - "enum": [ - true - ], - "type": "boolean" + "type": "string" } ] + }, + "maxSnapDistance": { + "description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10", + "type": "number" } }, "required": [ diff --git a/Docs/Schemas/LineRenderingConfigJson.schema.json b/Docs/Schemas/LineRenderingConfigJson.schema.json index 6851470f5..8a345c221 100644 --- a/Docs/Schemas/LineRenderingConfigJson.schema.json +++ b/Docs/Schemas/LineRenderingConfigJson.schema.json @@ -74,13 +74,12 @@ }, "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -99,8 +98,7 @@ } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -115,8 +113,7 @@ ], "additionalProperties": false }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { @@ -284,12 +281,10 @@ "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -300,12 +295,10 @@ "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" diff --git a/Docs/Schemas/LineRenderingConfigJsonJSC.ts b/Docs/Schemas/LineRenderingConfigJsonJSC.ts index a31659428..6a129ee09 100644 --- a/Docs/Schemas/LineRenderingConfigJsonJSC.ts +++ b/Docs/Schemas/LineRenderingConfigJsonJSC.ts @@ -74,13 +74,12 @@ export default { }, "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -99,8 +98,7 @@ export default { } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -114,8 +112,7 @@ export default { "and" ] }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { @@ -279,12 +276,10 @@ export default { "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -295,12 +290,10 @@ export default { "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" diff --git a/Docs/Schemas/MappingConfigJson.schema.json b/Docs/Schemas/MappingConfigJson.schema.json index 1d03bba21..86da9e4d3 100644 --- a/Docs/Schemas/MappingConfigJson.schema.json +++ b/Docs/Schemas/MappingConfigJson.schema.json @@ -3,7 +3,7 @@ "properties": { "if": { "$ref": "#/definitions/TagConfigJson", - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" }, "then": { "description": "Shown if the 'if is fulfilled\nType: rendered", @@ -44,12 +44,10 @@ "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -63,12 +61,10 @@ "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -90,12 +86,10 @@ "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -113,13 +107,12 @@ ], "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -138,8 +131,7 @@ } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -154,8 +146,7 @@ ], "additionalProperties": false }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { @@ -323,12 +314,10 @@ "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -339,12 +328,10 @@ "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" diff --git a/Docs/Schemas/MappingConfigJsonJSC.ts b/Docs/Schemas/MappingConfigJsonJSC.ts index dc6ab7272..77517d0a9 100644 --- a/Docs/Schemas/MappingConfigJsonJSC.ts +++ b/Docs/Schemas/MappingConfigJsonJSC.ts @@ -3,7 +3,7 @@ export default { "properties": { "if": { "$ref": "#/definitions/TagConfigJson", - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" }, "then": { "description": "Shown if the 'if is fulfilled\nType: rendered", @@ -44,12 +44,10 @@ export default { "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -63,12 +61,10 @@ export default { "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -90,12 +86,10 @@ export default { "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -113,13 +107,12 @@ export default { ], "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -138,8 +131,7 @@ export default { } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -153,8 +145,7 @@ export default { "and" ] }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { @@ -318,12 +309,10 @@ export default { "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -334,12 +323,10 @@ export default { "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" diff --git a/Docs/Schemas/MoveConfigJson.schema.json b/Docs/Schemas/MoveConfigJson.schema.json index 33c89a5ba..3e55e42a0 100644 --- a/Docs/Schemas/MoveConfigJson.schema.json +++ b/Docs/Schemas/MoveConfigJson.schema.json @@ -12,13 +12,12 @@ }, "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -37,8 +36,7 @@ } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -53,8 +51,7 @@ ], "additionalProperties": false }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { diff --git a/Docs/Schemas/MoveConfigJsonJSC.ts b/Docs/Schemas/MoveConfigJsonJSC.ts index 2d2565825..907e16853 100644 --- a/Docs/Schemas/MoveConfigJsonJSC.ts +++ b/Docs/Schemas/MoveConfigJsonJSC.ts @@ -12,13 +12,12 @@ export default { }, "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -37,8 +36,7 @@ export default { } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -52,8 +50,7 @@ export default { "and" ] }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { diff --git a/Docs/Schemas/PointRenderingConfigJson.schema.json b/Docs/Schemas/PointRenderingConfigJson.schema.json index 4fce67ff2..17877a18a 100644 --- a/Docs/Schemas/PointRenderingConfigJson.schema.json +++ b/Docs/Schemas/PointRenderingConfigJson.schema.json @@ -28,7 +28,7 @@ "properties": { "if": { "$ref": "#/definitions/TagConfigJson", - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" }, "then": { "description": "Badge to show\nType: icon", @@ -59,6 +59,17 @@ } ] }, + "anchor": { + "description": "question: What is the anchorpoint of the icon?\n\nThis matches the geographical point with a location on the icon.\nFor example, a feature attached to the ground can use 'bottom' as zooming in will give the appearance of being anchored to a fixed location.", + "anyOf": [ + { + "$ref": "#/definitions/TagRenderingConfigJson" + }, + { + "type": "string" + } + ] + }, "rotation": { "description": "The rotation of an icon, useful for e.g. directions.\nUsage: as if it were a css property for 'rotate', thus has to end with 'deg', e.g. `90deg`, `{direction}deg`, `calc(90deg - {camera:direction}deg)``", "anyOf": [ @@ -161,13 +172,12 @@ ], "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -186,8 +196,7 @@ } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -202,8 +211,7 @@ ], "additionalProperties": false }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { @@ -371,12 +379,10 @@ "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -387,12 +393,10 @@ "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" diff --git a/Docs/Schemas/PointRenderingConfigJsonJSC.ts b/Docs/Schemas/PointRenderingConfigJsonJSC.ts index 5aa23c5aa..41008a14a 100644 --- a/Docs/Schemas/PointRenderingConfigJsonJSC.ts +++ b/Docs/Schemas/PointRenderingConfigJsonJSC.ts @@ -28,7 +28,7 @@ export default { "properties": { "if": { "$ref": "#/definitions/TagConfigJson", - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" }, "then": { "description": "Badge to show\nType: icon", @@ -59,6 +59,17 @@ export default { } ] }, + "anchor": { + "description": "question: What is the anchorpoint of the icon?\n\nThis matches the geographical point with a location on the icon.\nFor example, a feature attached to the ground can use 'bottom' as zooming in will give the appearance of being anchored to a fixed location.", + "anyOf": [ + { + "$ref": "#/definitions/TagRenderingConfigJson" + }, + { + "type": "string" + } + ] + }, "rotation": { "description": "The rotation of an icon, useful for e.g. directions.\nUsage: as if it were a css property for 'rotate', thus has to end with 'deg', e.g. `90deg`, `{direction}deg`, `calc(90deg - {camera:direction}deg)``", "anyOf": [ @@ -161,13 +172,12 @@ export default { ], "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -186,8 +196,7 @@ export default { } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -201,8 +210,7 @@ export default { "and" ] }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { @@ -366,12 +374,10 @@ export default { "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -382,12 +388,10 @@ export default { "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" diff --git a/Docs/Schemas/QuestionableTagRenderingConfigJson.schema.json b/Docs/Schemas/QuestionableTagRenderingConfigJson.schema.json index 2d7d7e930..ace030d38 100644 --- a/Docs/Schemas/QuestionableTagRenderingConfigJson.schema.json +++ b/Docs/Schemas/QuestionableTagRenderingConfigJson.schema.json @@ -151,12 +151,10 @@ "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -167,12 +165,10 @@ "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -182,13 +178,12 @@ }, "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -207,8 +202,7 @@ } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -223,8 +217,7 @@ ], "additionalProperties": false }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { @@ -392,12 +385,10 @@ "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -408,12 +399,10 @@ "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -497,7 +486,7 @@ "properties": { "if": { "$ref": "#/definitions/TagConfigJson", - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" }, "then": { "description": "Shown if the 'if is fulfilled\nType: rendered", @@ -538,12 +527,10 @@ "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -557,12 +544,10 @@ "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -584,12 +569,10 @@ "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" diff --git a/Docs/Schemas/QuestionableTagRenderingConfigJsonJSC.ts b/Docs/Schemas/QuestionableTagRenderingConfigJsonJSC.ts index fe2a87c1e..678dc5db7 100644 --- a/Docs/Schemas/QuestionableTagRenderingConfigJsonJSC.ts +++ b/Docs/Schemas/QuestionableTagRenderingConfigJsonJSC.ts @@ -151,12 +151,10 @@ export default { "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -167,12 +165,10 @@ export default { "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -182,13 +178,12 @@ export default { }, "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -207,8 +202,7 @@ export default { } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -222,8 +216,7 @@ export default { "and" ] }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { @@ -387,12 +380,10 @@ export default { "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -403,12 +394,10 @@ export default { "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -490,7 +479,7 @@ export default { "properties": { "if": { "$ref": "#/definitions/TagConfigJson", - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" }, "then": { "description": "Shown if the 'if is fulfilled\nType: rendered", @@ -531,12 +520,10 @@ export default { "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -550,12 +537,10 @@ export default { "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -577,12 +562,10 @@ export default { "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" diff --git a/Docs/Schemas/RewritableConfigJson.schema.json b/Docs/Schemas/RewritableConfigJson.schema.json index f463aee8f..3a3245436 100644 --- a/Docs/Schemas/RewritableConfigJson.schema.json +++ b/Docs/Schemas/RewritableConfigJson.schema.json @@ -34,13 +34,12 @@ ], "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -59,8 +58,7 @@ } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -75,8 +73,7 @@ ], "additionalProperties": false }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { @@ -244,12 +241,10 @@ "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -260,12 +255,10 @@ "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -349,7 +342,7 @@ "properties": { "if": { "$ref": "#/definitions/TagConfigJson", - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" }, "then": { "description": "Shown if the 'if is fulfilled\nType: rendered", @@ -390,12 +383,10 @@ "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -409,12 +400,10 @@ "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -436,12 +425,10 @@ "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" diff --git a/Docs/Schemas/RewritableConfigJsonJSC.ts b/Docs/Schemas/RewritableConfigJsonJSC.ts index 3f13ebb62..29053a14c 100644 --- a/Docs/Schemas/RewritableConfigJsonJSC.ts +++ b/Docs/Schemas/RewritableConfigJsonJSC.ts @@ -34,13 +34,12 @@ export default { ], "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -59,8 +58,7 @@ export default { } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -74,8 +72,7 @@ export default { "and" ] }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { @@ -239,12 +236,10 @@ export default { "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -255,12 +250,10 @@ export default { "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -342,7 +335,7 @@ export default { "properties": { "if": { "$ref": "#/definitions/TagConfigJson", - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" }, "then": { "description": "Shown if the 'if is fulfilled\nType: rendered", @@ -383,12 +376,10 @@ export default { "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -402,12 +393,10 @@ export default { "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -429,12 +418,10 @@ export default { "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" diff --git a/Docs/Schemas/TagConfigJson.schema.json b/Docs/Schemas/TagConfigJson.schema.json index 326d7601d..55854f4a6 100644 --- a/Docs/Schemas/TagConfigJson.schema.json +++ b/Docs/Schemas/TagConfigJson.schema.json @@ -1,15 +1,14 @@ { "$ref": "#/definitions/TagConfigJson", - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -28,8 +27,7 @@ } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { diff --git a/Docs/Schemas/TagConfigJsonJSC.ts b/Docs/Schemas/TagConfigJsonJSC.ts index 5c3745a21..63d606219 100644 --- a/Docs/Schemas/TagConfigJsonJSC.ts +++ b/Docs/Schemas/TagConfigJsonJSC.ts @@ -1,15 +1,14 @@ export default { "$ref": "#/definitions/TagConfigJson", - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -28,8 +27,7 @@ export default { } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { diff --git a/Docs/Schemas/TagRenderingConfigJson.schema.json b/Docs/Schemas/TagRenderingConfigJson.schema.json index 2b9e5fc90..91d9fab51 100644 --- a/Docs/Schemas/TagRenderingConfigJson.schema.json +++ b/Docs/Schemas/TagRenderingConfigJson.schema.json @@ -79,12 +79,10 @@ "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -95,12 +93,10 @@ "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -175,13 +171,12 @@ }, "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -200,8 +195,7 @@ } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -216,8 +210,7 @@ ], "additionalProperties": false }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { diff --git a/Docs/Schemas/TagRenderingConfigJsonJSC.ts b/Docs/Schemas/TagRenderingConfigJsonJSC.ts index b0610fa05..916282790 100644 --- a/Docs/Schemas/TagRenderingConfigJsonJSC.ts +++ b/Docs/Schemas/TagRenderingConfigJsonJSC.ts @@ -79,12 +79,10 @@ export default { "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -95,12 +93,10 @@ export default { "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -175,13 +171,12 @@ export default { }, "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -200,8 +195,7 @@ export default { } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -215,8 +209,7 @@ export default { "and" ] }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { diff --git a/Docs/Schemas/UnitConfigJson.schema.json b/Docs/Schemas/UnitConfigJson.schema.json index 161f4f9c5..252f208de 100644 --- a/Docs/Schemas/UnitConfigJson.schema.json +++ b/Docs/Schemas/UnitConfigJson.schema.json @@ -31,13 +31,12 @@ ], "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -56,8 +55,7 @@ } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -72,8 +70,7 @@ ], "additionalProperties": false }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { diff --git a/Docs/Schemas/UnitConfigJsonJSC.ts b/Docs/Schemas/UnitConfigJsonJSC.ts index bd20a3e33..b8d7b913b 100644 --- a/Docs/Schemas/UnitConfigJsonJSC.ts +++ b/Docs/Schemas/UnitConfigJsonJSC.ts @@ -31,13 +31,12 @@ export default { ], "definitions": { "TagConfigJson": { - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag", "anyOf": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -56,8 +55,7 @@ export default { } ] }, - "AndTagConfigJson": { - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation", + "{and:TagConfigJson[];}": { "type": "object", "properties": { "and": { @@ -71,8 +69,7 @@ export default { "and" ] }, - "OrTagConfigJson": { - "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", + "{or:TagConfigJson[];}": { "type": "object", "properties": { "or": { diff --git a/Models/ThemeConfig/Json/LayerConfigJson.ts b/Models/ThemeConfig/Json/LayerConfigJson.ts index bcd6db4c8..56aeba28c 100644 --- a/Models/ThemeConfig/Json/LayerConfigJson.ts +++ b/Models/ThemeConfig/Json/LayerConfigJson.ts @@ -42,6 +42,9 @@ export interface LayerConfigJson { description?: string | Record /** + * + * Question: Where should the data be fetched from? + * * This determines where the data for the layer is fetched: from OSM or from an external geojson dataset. * * If no 'geojson' is defined, data will be fetched from overpass and the OSM-API. @@ -50,56 +53,61 @@ export interface LayerConfigJson { * * Note: a source must always be defined. 'special' is only allowed if this is a builtin-layer * + * types: Load data with specific tags from OpenStreetMap ; Load data from an external geojson source ; + * group: basic */ source: | "special" | "special:library" - | ( - | { - /** - * Every source must set which tags have to be present in order to load the given layer. - */ - osmTags: TagConfigJson - /** - * The maximum amount of seconds that a tile is allowed to linger in the cache - */ - maxCacheAge?: number - } - | { - /** - * The actual source of the data to load, if loaded via geojson. - * - * # A single geojson-file - * source: {geoJson: "https://my.source.net/some-geo-data.geojson"} - * fetches a geojson from a third party source - * - * # A tiled geojson source - * source: {geoJson: "https://my.source.net/some-tile-geojson-{layer}-{z}-{x}-{y}.geojson", geoJsonZoomLevel: 14} - * to use a tiled geojson source. The web server must offer multiple geojsons. {z}, {x} and {y} are substituted by the location; {layer} is substituted with the id of the loaded layer - * - * Some API's use a BBOX instead of a tile, this can be used by specifying {y_min}, {y_max}, {x_min} and {x_max} - */ - geoJson: string - /** - * To load a tiled geojson layer, set the zoomlevel of the tiles - */ - geoJsonZoomLevel?: number - /** - * Indicates that the upstream geojson data is OSM-derived. - * Useful for e.g. merging or for scripts generating this cache - */ - isOsmCache?: boolean - /** - * Some API's use a mercator-projection (EPSG:900913) instead of WGS84. Set the flag `mercatorCrs: true` in the source for this - */ - mercatorCrs?: boolean - /** - * Some API's have an id-field, but give it a different name. - * Setting this key will rename this field into 'id' - */ - idKey?: string - } - ) + | { + /** + * question: Which tags must be present on the feature to show it in this layer? + * + * Every source must set which tags have to be present in order to load the given layer. + */ + osmTags: TagConfigJson + /** + * question: How long (in seconds) is the data allowed to remain cached until it must be refreshed? + * The maximum amount of seconds that a tile is allowed to linger in the cache + * + * type: nat + */ + maxCacheAge?: number + } + | { + /** + * The actual source of the data to load, if loaded via geojson. + * + * # A single geojson-file + * source: {geoJson: "https://my.source.net/some-geo-data.geojson"} + * fetches a geojson from a third party source + * + * # A tiled geojson source + * source: {geoJson: "https://my.source.net/some-tile-geojson-{layer}-{z}-{x}-{y}.geojson", geoJsonZoomLevel: 14} + * to use a tiled geojson source. The web server must offer multiple geojsons. {z}, {x} and {y} are substituted by the location; {layer} is substituted with the id of the loaded layer + * + * Some API's use a BBOX instead of a tile, this can be used by specifying {y_min}, {y_max}, {x_min} and {x_max} + */ + geoJson: string + /** + * To load a tiled geojson layer, set the zoomlevel of the tiles + */ + geoJsonZoomLevel?: number + /** + * Indicates that the upstream geojson data is OSM-derived. + * Useful for e.g. merging or for scripts generating this cache + */ + isOsmCache?: boolean + /** + * Some API's use a mercator-projection (EPSG:900913) instead of WGS84. Set the flag `mercatorCrs: true` in the source for this + */ + mercatorCrs?: boolean + /** + * Some API's have an id-field, but give it a different name. + * Setting this key will rename this field into 'id' + */ + idKey?: string + } /** * @@ -158,8 +166,8 @@ export interface LayerConfigJson { * This prevents cluttering the map with thousands of parkings if one is looking to an entire city. * * Default: 0 - * * group: basic + * type: nat * question: At what zoom level should features of the layer be shown? * ifunset: Always load this layer, even if the entire world is in view. */ diff --git a/Models/ThemeConfig/Json/TagConfigJson.ts b/Models/ThemeConfig/Json/TagConfigJson.ts index b3390edc9..50aede10f 100644 --- a/Models/ThemeConfig/Json/TagConfigJson.ts +++ b/Models/ThemeConfig/Json/TagConfigJson.ts @@ -1,20 +1,14 @@ /** * The main representation of Tags. * See https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation + * + * type: tag */ -export type TagConfigJson = string | AndTagConfigJson | OrTagConfigJson - -/** - * Chain many tags, to match, all of these should be true - * See https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation - */ -export type OrTagConfigJson = { - or: TagConfigJson[] -} -/** - * Chain many tags, to match, a single of these should be true - * See https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation - */ -export type AndTagConfigJson = { - and: TagConfigJson[] -} +export type TagConfigJson = + | string + | { + and: TagConfigJson[] + } + | { + or: TagConfigJson[] + } diff --git a/UI/InputElement/ValidatedInput.svelte b/UI/InputElement/ValidatedInput.svelte index 3661eed8f..8fb1c083c 100644 --- a/UI/InputElement/ValidatedInput.svelte +++ b/UI/InputElement/ValidatedInput.svelte @@ -11,7 +11,7 @@ import {Utils} from "../../Utils"; export let type: ValidatorType - export let feedback: UIEventSource | undefined = undefined + export let feedback: UIEventSource | undefined export let getCountry: () => string | undefined export let placeholder: string | Translation | undefined export let unit: Unit = undefined @@ -53,7 +53,7 @@ validator = Validators.get(type ?? "string") _placeholder = placeholder ?? validator?.getPlaceholder() ?? type - feedback = feedback?.setData(validator?.getFeedback(_value.data, getCountry)) + feedback?.setData(validator?.getFeedback(_value.data, getCountry)) initValueAndDenom() } @@ -62,8 +62,8 @@ // Update the value stores const v = _value.data if (!validator?.isValid(v, getCountry) || v === "") { - value.setData(undefined) feedback?.setData(validator?.getFeedback(v, getCountry)) + value.setData("") return } diff --git a/UI/Popup/TagRendering/FreeformInput.svelte b/UI/Popup/TagRendering/FreeformInput.svelte index bf33a93e5..eb76db0d9 100644 --- a/UI/Popup/TagRendering/FreeformInput.svelte +++ b/UI/Popup/TagRendering/FreeformInput.svelte @@ -24,8 +24,7 @@ inline = config.freeform?.inline } - export let feedback: UIEventSource = new UIEventSource(undefined) - + export let feedback: UIEventSource let dispatch = createEventDispatcher<{ selected, submit }>() onDestroy( value.addCallbackD(() => { diff --git a/UI/Studio/EditLayerState.ts b/UI/Studio/EditLayerState.ts index b0d5c1efb..78f60f05a 100644 --- a/UI/Studio/EditLayerState.ts +++ b/UI/Studio/EditLayerState.ts @@ -47,4 +47,11 @@ export default class EditLayerState { !path.some((part, i) => !(sch.path.length > path.length && sch.path[i] === part)) ) } + + public getSchema(path: string[]) { + return this.schema.filter( + (sch) => + !path.some((part, i) => !(sch.path.length == path.length && sch.path[i] === part)) + ) + } } diff --git a/UI/Studio/SchemaBaseMultiType.svelte b/UI/Studio/SchemaBaseMultiType.svelte new file mode 100644 index 000000000..175224852 --- /dev/null +++ b/UI/Studio/SchemaBaseMultiType.svelte @@ -0,0 +1,62 @@ + + +
+ +
+ +{#if chosenOption !== undefined} +
+ {#each subSchemas as subschema} + {JSON.stringify(subschema)} + + {/each} +
+{/if} diff --git a/UI/Studio/SchemaBasedField.svelte b/UI/Studio/SchemaBasedField.svelte index b6dcc1a00..c44deff27 100644 --- a/UI/Studio/SchemaBasedField.svelte +++ b/UI/Studio/SchemaBasedField.svelte @@ -1,7 +1,6 @@ {#if schema.type === "array"} +{:else if schema.hints.types} + {:else} {/if} diff --git a/UI/Studio/configMeta.ts b/UI/Studio/configMeta.ts index f2b9d97d6..69a3d54ae 100644 --- a/UI/Studio/configMeta.ts +++ b/UI/Studio/configMeta.ts @@ -6,9 +6,14 @@ export interface ConfigMeta { hints: { group?: string typehint?: string + /** + * If multiple subcategories can be chosen + */ + types?: string question?: string ifunset?: string inline?: string + default?: string } required: boolean description: string diff --git a/assets/layerconfigmeta.json b/assets/layerconfigmeta.json index fc93574e9..a46ed5646 100644 --- a/assets/layerconfigmeta.json +++ b/assets/layerconfigmeta.json @@ -62,17 +62,21 @@ "source" ], "required": true, - "hints": {}, + "hints": { + "types": "Load data with specific tags from OpenStreetMap ; Load data from an external geojson source ;", + "group": "basic", + "question": "Where should the data be fetched from?" + }, "type": [ { "type": "object", "properties": { "osmTags": { "$ref": "#/definitions/TagConfigJson", - "description": "Every source must set which tags have to be present in order to load the given layer." + "description": "question: Which tags must be present on the feature to show it in this layer?\nEvery source must set which tags have to be present in order to load the given layer." }, "maxCacheAge": { - "description": "The maximum amount of seconds that a tile is allowed to linger in the cache", + "description": "question: How long (in seconds) is the data allowed to remain cached until it must be refreshed?\nThe maximum amount of seconds that a tile is allowed to linger in the cache\n\ntype: nat", "type": "number" } }, @@ -116,21 +120,22 @@ "type": "string" } ], - "description": "This determines where the data for the layer is fetched: from OSM or from an external geojson dataset.\n\nIf no 'geojson' is defined, data will be fetched from overpass and the OSM-API.\n\nEvery source _must_ define which tags _must_ be present in order to be picked up.\n\nNote: a source must always be defined. 'special' is only allowed if this is a builtin-layer" + "description": "\nThis determines where the data for the layer is fetched: from OSM or from an external geojson dataset.\n\nIf no 'geojson' is defined, data will be fetched from overpass and the OSM-API.\n\nEvery source _must_ define which tags _must_ be present in order to be picked up.\n\nNote: a source must always be defined. 'special' is only allowed if this is a builtin-layer\n" }, { "path": [ "source", "osmTags" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -148,27 +153,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "source", - "osmTags" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "source", - "osmTags" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -176,9 +161,12 @@ "maxCacheAge" ], "required": false, - "hints": {}, + "hints": { + "typehint": "nat", + "question": "How long (in seconds) is the data allowed to remain cached until it must be refreshed?" + }, "type": "number", - "description": "The maximum amount of seconds that a tile is allowed to linger in the cache" + "description": "The maximum amount of seconds that a tile is allowed to linger in the cache\n" }, { "path": [ @@ -262,12 +250,10 @@ }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -275,28 +261,20 @@ ], "description": "If set, only features matching this extra tag will be shown.\nThis is useful to hide certain features from view.\n\nThe default value is 'yes'\n" }, - { - "path": [ - "isShown" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "isShown", "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -314,26 +292,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "isShown", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "isShown" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -341,13 +300,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -365,27 +325,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "isShown", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "isShown", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -404,12 +344,14 @@ ], "required": false, "hints": { + "typehint": "nat", "group": "basic", + "default": "0", "question": "At what zoom level should features of the layer be shown?", "ifunset": "Always load this layer, even if the entire world is in view." }, "type": "number", - "description": "The minimum needed zoomlevel required to start loading and displaying the data.\nThis can be used to only show common features (e.g. a bicycle parking) only when the map is zoomed in very much (17).\nThis prevents cluttering the map with thousands of parkings if one is looking to an entire city.\n\nDefault: 0\n" + "description": "The minimum needed zoomlevel required to start loading and displaying the data.\nThis can be used to only show common features (e.g. a bicycle parking) only when the map is zoomed in very much (17).\nThis prevents cluttering the map with thousands of parkings if one is looking to an entire city.\n" }, { "path": [ @@ -428,10 +370,11 @@ ], "required": false, "hints": { - "group": "advanced" + "group": "advanced", + "default": "100 (thus: always visible" }, "type": "number", - "description": "The zoom level at which point the data is hidden again\nDefault: 100 (thus: always visible\n" + "description": "The zoom level at which point the data is hidden again\n" }, { "path": [ @@ -571,12 +514,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -584,16 +525,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "title", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "title", @@ -601,13 +532,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -625,28 +557,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "title", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "title", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -655,13 +566,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -679,29 +591,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "title", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "title", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -712,12 +602,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -725,16 +613,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "title", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "title", @@ -742,13 +620,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -766,28 +645,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "title", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "title", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -796,13 +654,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -820,29 +679,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "title", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "title", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -881,14 +718,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -906,29 +744,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "title", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "title", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -1168,12 +984,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1181,16 +995,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "titleIcons", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "titleIcons", @@ -1198,13 +1002,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -1222,28 +1027,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "titleIcons", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "titleIcons", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -1252,13 +1036,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -1276,29 +1061,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "titleIcons", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "titleIcons", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -1309,12 +1072,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1322,16 +1083,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "titleIcons", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "titleIcons", @@ -1339,13 +1090,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -1363,28 +1115,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "titleIcons", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "titleIcons", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -1393,13 +1124,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -1417,29 +1149,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "titleIcons", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "titleIcons", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -1478,14 +1188,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -1503,29 +1214,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "titleIcons", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "titleIcons", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -1802,12 +1491,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1815,17 +1502,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "icon", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -1834,13 +1510,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -1858,30 +1535,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "icon", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "icon", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -1891,13 +1545,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -1915,31 +1570,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "icon", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "icon", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -1951,12 +1582,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1964,17 +1593,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "icon", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -1983,13 +1601,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -2007,30 +1626,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "icon", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "icon", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -2040,13 +1636,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -2064,31 +1661,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "icon", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "icon", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -2131,14 +1704,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -2156,31 +1730,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "icon", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "icon", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -2281,14 +1831,15 @@ "iconBadges", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -2306,29 +1857,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "iconBadges", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "iconBadges", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -2484,12 +2013,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -2497,18 +2024,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "iconBadges", - "then", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -2518,13 +2033,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -2542,32 +2058,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "iconBadges", - "then", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "iconBadges", - "then", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -2578,13 +2069,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -2602,33 +2094,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "iconBadges", - "then", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "iconBadges", - "then", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -2641,12 +2107,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -2654,18 +2118,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "iconBadges", - "then", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -2675,13 +2127,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -2699,32 +2152,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "iconBadges", - "then", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "iconBadges", - "then", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -2735,13 +2163,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -2759,33 +2188,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "iconBadges", - "then", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "iconBadges", - "then", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -2832,14 +2235,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -2857,33 +2261,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "iconBadges", - "then", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "iconBadges", - "then", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -3116,12 +2494,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -3129,17 +2505,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "iconSize", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -3148,13 +2513,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -3172,30 +2538,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "iconSize", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "iconSize", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -3205,13 +2548,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -3229,31 +2573,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "iconSize", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "iconSize", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -3265,12 +2585,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -3278,17 +2596,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "iconSize", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -3297,13 +2604,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -3321,30 +2629,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "iconSize", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "iconSize", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -3354,13 +2639,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -3378,31 +2664,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "iconSize", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "iconSize", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -3445,14 +2707,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -3470,31 +2733,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "iconSize", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "iconSize", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -3579,6 +2818,476 @@ "type": "string", "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)" }, + { + "path": [ + "mapRendering", + "anchor" + ], + "required": false, + "hints": { + "question": "What is the anchorpoint of the icon?" + }, + "type": [ + { + "$ref": "#/definitions/TagRenderingConfigJson" + }, + { + "type": "string" + } + ], + "description": "\nThis matches the geographical point with a location on the icon.\nFor example, a feature attached to the ground can use 'bottom' as zooming in will give the appearance of being anchored to a fixed location." + }, + { + "path": [ + "mapRendering", + "anchor" + ], + "required": false, + "hints": {}, + "type": "object", + "description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one" + }, + { + "path": [ + "mapRendering", + "anchor", + "id" + ], + "required": false, + "hints": {}, + "type": "string", + "description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)" + }, + { + "path": [ + "mapRendering", + "anchor", + "labels" + ], + "required": false, + "hints": {}, + "type": "array", + "description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away" + }, + { + "path": [ + "mapRendering", + "anchor", + "classes" + ], + "required": false, + "hints": {}, + "type": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "description": "A list of css-classes to apply to the entire tagRendering if the answer is known (not applied on the question).\nThis is only for advanced users" + }, + { + "path": [ + "mapRendering", + "anchor", + "description" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "A human-readable text explaining what this tagRendering does.\nMostly used for the shared tagrenderings" + }, + { + "path": [ + "mapRendering", + "anchor", + "render" + ], + "required": false, + "hints": { + "typehint": "rendered" + }, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "object", + "properties": { + "special": { + "allOf": [ + { + "$ref": "#/definitions/Record>" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string" + } + }, + "required": [ + "type" + ] + } + ] + } + }, + "required": [ + "special" + ] + }, + { + "type": "string" + } + ], + "description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '{website}' or include images such as `This is of type A
`" + }, + { + "path": [ + "mapRendering", + "anchor", + "condition" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "$ref": "#/definitions/{or:TagConfigJson[];}" + }, + { + "type": "string" + } + ], + "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" + }, + { + "path": [ + "mapRendering", + "anchor", + "condition", + "and" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "mapRendering", + "anchor", + "condition", + "or" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "mapRendering", + "anchor", + "metacondition" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "$ref": "#/definitions/{or:TagConfigJson[];}" + }, + { + "type": "string" + } + ], + "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" + }, + { + "path": [ + "mapRendering", + "anchor", + "metacondition", + "and" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "mapRendering", + "anchor", + "metacondition", + "or" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "mapRendering", + "anchor", + "freeform" + ], + "required": false, + "hints": {}, + "type": "object", + "description": "Allow freeform text input from the user" + }, + { + "path": [ + "mapRendering", + "anchor", + "freeform", + "key" + ], + "required": true, + "hints": {}, + "type": "string", + "description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown" + }, + { + "path": [ + "mapRendering", + "anchor", + "mappings" + ], + "required": false, + "hints": {}, + "type": "array", + "description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes" + }, + { + "path": [ + "mapRendering", + "anchor", + "mappings", + "if" + ], + "required": true, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "mapRendering", + "anchor", + "mappings", + "then" + ], + "required": true, + "hints": { + "typehint": "rendered" + }, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "If the condition `if` is met, the text `then` will be rendered.\nIf not known yet, the user will be presented with `then` as an option" + }, + { + "path": [ + "mapRendering", + "anchor", + "mappings", + "icon" + ], + "required": false, + "hints": { + "typehint": "icon" + }, + "type": [ + { + "type": "object", + "properties": { + "path": { + "description": "The path to the icon\nType: icon", + "type": "string" + }, + "class": { + "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)", + "type": "string" + } + }, + "required": [ + "path" + ] + }, + { + "type": "string" + } + ], + "description": "An icon supporting this mapping; typically shown pretty small" + }, + { + "path": [ + "mapRendering", + "anchor", + "mappings", + "icon", + "path" + ], + "required": true, + "hints": { + "typehint": "icon" + }, + "type": "string", + "description": "The path to the icon" + }, + { + "path": [ + "mapRendering", + "anchor", + "mappings", + "icon", + "class" + ], + "required": false, + "hints": {}, + "type": "string", + "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)" + }, { "path": [ "mapRendering", @@ -3723,12 +3432,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -3736,17 +3443,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "rotation", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -3755,13 +3451,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -3779,30 +3476,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "rotation", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "rotation", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -3812,13 +3486,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -3836,31 +3511,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "rotation", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "rotation", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -3872,12 +3523,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -3885,17 +3534,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "rotation", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -3904,13 +3542,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -3928,30 +3567,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "rotation", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "rotation", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -3961,13 +3577,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -3985,31 +3602,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "rotation", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "rotation", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -4052,14 +3645,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -4077,31 +3671,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "rotation", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "rotation", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -4330,12 +3900,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -4343,17 +3911,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "label", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -4362,13 +3919,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -4386,30 +3944,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "label", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "label", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -4419,13 +3954,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -4443,31 +3979,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "label", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "label", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -4479,12 +3991,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -4492,17 +4002,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "label", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -4511,13 +4010,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -4535,30 +4035,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "label", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "label", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -4568,13 +4045,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -4592,31 +4070,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "label", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "label", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -4659,14 +4113,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -4684,31 +4139,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "label", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "label", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -4937,12 +4368,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -4950,17 +4379,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "css", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -4969,13 +4387,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -4993,30 +4412,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "css", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "css", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -5026,13 +4422,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -5050,31 +4447,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "css", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "css", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -5086,12 +4459,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -5099,17 +4470,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "css", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -5118,13 +4478,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -5142,30 +4503,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "css", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "css", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -5175,13 +4513,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -5199,31 +4538,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "css", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "css", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -5266,14 +4581,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -5291,31 +4607,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "css", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "css", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -5544,12 +4836,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -5557,17 +4847,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "cssClasses", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -5576,13 +4855,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -5600,30 +4880,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "cssClasses", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "cssClasses", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -5633,13 +4890,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -5657,31 +4915,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "cssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "cssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -5693,12 +4927,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -5706,17 +4938,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "cssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -5725,13 +4946,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -5749,30 +4971,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "cssClasses", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "cssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -5782,13 +4981,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -5806,31 +5006,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "cssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "cssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -5873,14 +5049,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -5898,31 +5075,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "cssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "cssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -6151,12 +5304,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -6164,17 +5315,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "labelCss", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -6183,13 +5323,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -6207,30 +5348,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "labelCss", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "labelCss", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -6240,13 +5358,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -6264,31 +5383,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "labelCss", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "labelCss", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -6300,12 +5395,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -6313,17 +5406,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "labelCss", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -6332,13 +5414,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -6356,30 +5439,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "labelCss", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "labelCss", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -6389,13 +5449,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -6413,31 +5474,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "labelCss", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "labelCss", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -6480,14 +5517,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -6505,31 +5543,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "labelCss", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "labelCss", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -6758,12 +5772,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -6771,17 +5783,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "labelCssClasses", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -6790,13 +5791,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -6814,30 +5816,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "labelCssClasses", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "labelCssClasses", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -6847,13 +5826,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -6871,31 +5851,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "labelCssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "labelCssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -6907,12 +5863,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -6920,17 +5874,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "labelCssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -6939,13 +5882,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -6963,30 +5907,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "labelCssClasses", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "labelCssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -6996,13 +5917,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -7020,31 +5942,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "labelCssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "labelCssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -7087,14 +5985,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -7112,31 +6011,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "labelCssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "labelCssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -7369,12 +6244,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -7382,17 +6255,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "pitchAlignment", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -7401,13 +6263,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -7425,30 +6288,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "pitchAlignment", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "pitchAlignment", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -7458,13 +6298,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -7482,31 +6323,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "pitchAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "pitchAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -7518,12 +6335,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -7531,17 +6346,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "pitchAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -7550,13 +6354,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -7574,30 +6379,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "pitchAlignment", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "pitchAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -7607,13 +6389,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -7631,31 +6414,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "pitchAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "pitchAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -7698,14 +6457,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -7723,31 +6483,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "pitchAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "pitchAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -7980,12 +6716,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -7993,17 +6727,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "rotationAlignment", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -8012,13 +6735,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -8036,30 +6760,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "rotationAlignment", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "rotationAlignment", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -8069,13 +6770,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -8093,31 +6795,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "rotationAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "rotationAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -8129,12 +6807,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -8142,17 +6818,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "rotationAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -8161,13 +6826,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -8185,30 +6851,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "rotationAlignment", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "rotationAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -8218,13 +6861,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -8242,31 +6886,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "rotationAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "rotationAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -8309,14 +6929,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -8334,31 +6955,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "rotationAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "rotationAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -8596,12 +7193,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -8609,17 +7204,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "color", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -8628,13 +7212,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -8652,30 +7237,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "color", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "color", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -8685,13 +7247,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -8709,31 +7272,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "color", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "color", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -8745,12 +7284,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -8758,17 +7295,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "color", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -8777,13 +7303,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -8801,30 +7328,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "color", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "color", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -8834,13 +7338,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -8858,31 +7363,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "color", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "color", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -8925,14 +7406,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -8950,31 +7432,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "color", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "color", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -9206,12 +7664,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -9219,17 +7675,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "width", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -9238,13 +7683,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -9262,30 +7708,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "width", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "width", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -9295,13 +7718,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -9319,31 +7743,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "width", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "width", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -9355,12 +7755,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -9368,17 +7766,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "width", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -9387,13 +7774,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -9411,30 +7799,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "width", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "width", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -9444,13 +7809,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -9468,31 +7834,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "width", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "width", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -9535,14 +7877,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -9560,31 +7903,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "width", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "width", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -9813,12 +8132,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -9826,17 +8143,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "dashArray", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -9845,13 +8151,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -9869,30 +8176,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "dashArray", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "dashArray", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -9902,13 +8186,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -9926,31 +8211,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "dashArray", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "dashArray", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -9962,12 +8223,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -9975,17 +8234,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "dashArray", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -9994,13 +8242,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -10018,30 +8267,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "dashArray", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "dashArray", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -10051,13 +8277,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -10075,31 +8302,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "dashArray", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "dashArray", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -10142,14 +8345,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -10167,31 +8371,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "dashArray", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "dashArray", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -10420,12 +8600,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -10433,17 +8611,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "lineCap", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -10452,13 +8619,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -10476,30 +8644,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "lineCap", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "lineCap", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -10509,13 +8654,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -10533,31 +8679,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "lineCap", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "lineCap", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -10569,12 +8691,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -10582,17 +8702,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "lineCap", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -10601,13 +8710,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -10625,30 +8735,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "lineCap", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "lineCap", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -10658,13 +8745,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -10682,31 +8770,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "lineCap", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "lineCap", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -10749,14 +8813,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -10774,31 +8839,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "lineCap", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "lineCap", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -11027,12 +9068,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -11040,17 +9079,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "fillColor", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -11059,13 +9087,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -11083,30 +9112,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "fillColor", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "fillColor", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -11116,13 +9122,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -11140,31 +9147,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "fillColor", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "fillColor", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -11176,12 +9159,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -11189,17 +9170,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "fillColor", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -11208,13 +9178,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -11232,30 +9203,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "fillColor", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "fillColor", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -11265,13 +9213,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -11289,31 +9238,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "fillColor", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "fillColor", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -11356,14 +9281,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -11381,31 +9307,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "fillColor", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "fillColor", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -11634,12 +9536,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -11647,17 +9547,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "offset", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -11666,13 +9555,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -11690,30 +9580,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "offset", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "offset", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -11723,13 +9590,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -11747,31 +9615,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "offset", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "offset", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -11783,12 +9627,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -11796,17 +9638,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "offset", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -11815,13 +9646,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -11839,30 +9671,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "offset", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "offset", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -11872,13 +9681,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -11896,31 +9706,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "offset", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "offset", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -11963,14 +9749,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -11988,31 +9775,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "offset", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "offset", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -12281,12 +10044,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -12294,18 +10055,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "icon", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -12315,13 +10064,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -12339,32 +10089,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "icon", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "icon", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -12375,13 +10100,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -12399,33 +10125,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "icon", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "icon", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -12438,12 +10138,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -12451,18 +10149,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "icon", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -12472,13 +10158,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -12496,32 +10183,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "icon", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "icon", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -12532,13 +10194,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -12556,33 +10219,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "icon", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "icon", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -12629,14 +10266,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -12654,33 +10292,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "icon", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "icon", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -12787,14 +10399,15 @@ "iconBadges", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -12812,31 +10425,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -13000,12 +10589,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -13013,19 +10600,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -13036,13 +10610,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -13060,34 +10635,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -13099,13 +10647,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -13123,35 +10672,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -13165,12 +10686,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -13178,19 +10697,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -13201,13 +10707,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -13225,34 +10732,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -13264,13 +10744,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -13288,35 +10769,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -13367,14 +10820,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -13392,35 +10846,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -13665,12 +11091,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -13678,18 +11102,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "iconSize", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -13699,13 +11111,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -13723,32 +11136,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconSize", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "iconSize", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -13759,13 +11147,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -13783,33 +11172,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconSize", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconSize", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -13822,12 +11185,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -13835,18 +11196,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "iconSize", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -13856,13 +11205,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -13880,32 +11230,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconSize", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "iconSize", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -13916,13 +11241,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -13940,33 +11266,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconSize", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconSize", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -14013,14 +11313,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -14038,33 +11339,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconSize", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconSize", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -14153,6 +11428,497 @@ "type": "string", "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)" }, + { + "path": [ + "mapRendering", + "renderings", + "anchor" + ], + "required": false, + "hints": { + "question": "What is the anchorpoint of the icon?" + }, + "type": [ + { + "$ref": "#/definitions/TagRenderingConfigJson" + }, + { + "type": "string" + } + ], + "description": "\nThis matches the geographical point with a location on the icon.\nFor example, a feature attached to the ground can use 'bottom' as zooming in will give the appearance of being anchored to a fixed location." + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor" + ], + "required": false, + "hints": {}, + "type": "object", + "description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "id" + ], + "required": false, + "hints": {}, + "type": "string", + "description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "labels" + ], + "required": false, + "hints": {}, + "type": "array", + "description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "classes" + ], + "required": false, + "hints": {}, + "type": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "description": "A list of css-classes to apply to the entire tagRendering if the answer is known (not applied on the question).\nThis is only for advanced users" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "description" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "A human-readable text explaining what this tagRendering does.\nMostly used for the shared tagrenderings" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "render" + ], + "required": false, + "hints": { + "typehint": "rendered" + }, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "object", + "properties": { + "special": { + "allOf": [ + { + "$ref": "#/definitions/Record>" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string" + } + }, + "required": [ + "type" + ] + } + ] + } + }, + "required": [ + "special" + ] + }, + { + "type": "string" + } + ], + "description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '{website}' or include images such as `This is of type A
`" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "condition" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "$ref": "#/definitions/{or:TagConfigJson[];}" + }, + { + "type": "string" + } + ], + "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "condition", + "and" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "condition", + "or" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "metacondition" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "$ref": "#/definitions/{or:TagConfigJson[];}" + }, + { + "type": "string" + } + ], + "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "metacondition", + "and" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "metacondition", + "or" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "freeform" + ], + "required": false, + "hints": {}, + "type": "object", + "description": "Allow freeform text input from the user" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "freeform", + "key" + ], + "required": true, + "hints": {}, + "type": "string", + "description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "mappings" + ], + "required": false, + "hints": {}, + "type": "array", + "description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "mappings", + "if" + ], + "required": true, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "mappings", + "then" + ], + "required": true, + "hints": { + "typehint": "rendered" + }, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "If the condition `if` is met, the text `then` will be rendered.\nIf not known yet, the user will be presented with `then` as an option" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "mappings", + "icon" + ], + "required": false, + "hints": { + "typehint": "icon" + }, + "type": [ + { + "type": "object", + "properties": { + "path": { + "description": "The path to the icon\nType: icon", + "type": "string" + }, + "class": { + "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)", + "type": "string" + } + }, + "required": [ + "path" + ] + }, + { + "type": "string" + } + ], + "description": "An icon supporting this mapping; typically shown pretty small" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "mappings", + "icon", + "path" + ], + "required": true, + "hints": { + "typehint": "icon" + }, + "type": "string", + "description": "The path to the icon" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "mappings", + "icon", + "class" + ], + "required": false, + "hints": {}, + "type": "string", + "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)" + }, { "path": [ "mapRendering", @@ -14305,12 +12071,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -14318,18 +12082,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "rotation", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -14339,13 +12091,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -14363,32 +12116,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotation", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "rotation", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -14399,13 +12127,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -14423,33 +12152,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotation", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotation", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -14462,12 +12165,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -14475,18 +12176,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "rotation", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -14496,13 +12185,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -14520,32 +12210,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotation", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "rotation", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -14556,13 +12221,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -14580,33 +12246,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotation", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotation", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -14653,14 +12293,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -14678,33 +12319,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotation", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotation", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -14945,12 +12560,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -14958,18 +12571,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "label", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -14979,13 +12580,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -15003,32 +12605,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "label", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "label", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -15039,13 +12616,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -15063,33 +12641,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "label", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "label", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -15102,12 +12654,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -15115,18 +12665,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "label", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -15136,13 +12674,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -15160,32 +12699,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "label", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "label", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -15196,13 +12710,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -15220,33 +12735,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "label", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "label", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -15293,14 +12782,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -15318,33 +12808,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "label", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "label", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -15585,12 +13049,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -15598,18 +13060,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "css", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -15619,13 +13069,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -15643,32 +13094,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "css", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "css", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -15679,13 +13105,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -15703,33 +13130,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "css", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "css", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -15742,12 +13143,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -15755,18 +13154,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "css", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -15776,13 +13163,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -15800,32 +13188,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "css", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "css", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -15836,13 +13199,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -15860,33 +13224,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "css", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "css", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -15933,14 +13271,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -15958,33 +13297,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "css", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "css", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -16225,12 +13538,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -16238,18 +13549,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "cssClasses", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -16259,13 +13558,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -16283,32 +13583,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "cssClasses", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "cssClasses", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -16319,13 +13594,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -16343,33 +13619,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "cssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "cssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -16382,12 +13632,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -16395,18 +13643,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "cssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -16416,13 +13652,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -16440,32 +13677,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "cssClasses", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "cssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -16476,13 +13688,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -16500,33 +13713,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "cssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "cssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -16573,14 +13760,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -16598,33 +13786,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "cssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "cssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -16865,12 +14027,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -16878,18 +14038,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "labelCss", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -16899,13 +14047,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -16923,32 +14072,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCss", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "labelCss", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -16959,13 +14083,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -16983,33 +14108,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCss", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCss", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -17022,12 +14121,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -17035,18 +14132,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "labelCss", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -17056,13 +14141,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -17080,32 +14166,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCss", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "labelCss", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -17116,13 +14177,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -17140,33 +14202,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCss", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCss", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -17213,14 +14249,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -17238,33 +14275,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCss", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCss", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -17505,12 +14516,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -17518,18 +14527,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "labelCssClasses", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -17539,13 +14536,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -17563,32 +14561,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCssClasses", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "labelCssClasses", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -17599,13 +14572,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -17623,33 +14597,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -17662,12 +14610,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -17675,18 +14621,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -17696,13 +14630,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -17720,32 +14655,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -17756,13 +14666,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -17780,33 +14691,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -17853,14 +14738,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -17878,33 +14764,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -18149,12 +15009,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -18162,18 +15020,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "pitchAlignment", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -18183,13 +15029,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -18207,32 +15054,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "pitchAlignment", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "pitchAlignment", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -18243,13 +15065,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -18267,33 +15090,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "pitchAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "pitchAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -18306,12 +15103,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -18319,18 +15114,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -18340,13 +15123,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -18364,32 +15148,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -18400,13 +15159,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -18424,33 +15184,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -18497,14 +15231,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -18522,33 +15257,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "pitchAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "pitchAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -18793,12 +15502,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -18806,18 +15513,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "rotationAlignment", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -18827,13 +15522,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -18851,32 +15547,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotationAlignment", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "rotationAlignment", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -18887,13 +15558,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -18911,33 +15583,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotationAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotationAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -18950,12 +15596,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -18963,18 +15607,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -18984,13 +15616,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -19008,32 +15641,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -19044,13 +15652,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -19068,33 +15677,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -19141,14 +15724,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -19166,33 +15750,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotationAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotationAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -19443,12 +16001,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -19456,18 +16012,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "color", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -19477,13 +16021,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -19501,32 +16046,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "color", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "color", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -19537,13 +16057,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -19561,33 +16082,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "color", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "color", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -19600,12 +16095,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -19613,18 +16106,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "color", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -19634,13 +16115,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -19658,32 +16140,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "color", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "color", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -19694,13 +16151,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -19718,33 +16176,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "color", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "color", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -19791,14 +16223,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -19816,33 +16249,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "color", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "color", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -20086,12 +16493,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -20099,18 +16504,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "width", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -20120,13 +16513,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -20144,32 +16538,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "width", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "width", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -20180,13 +16549,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -20204,33 +16574,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "width", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "width", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -20243,12 +16587,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -20256,18 +16598,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "width", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -20277,13 +16607,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -20301,32 +16632,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "width", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "width", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -20337,13 +16643,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -20361,33 +16668,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "width", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "width", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -20434,14 +16715,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -20459,33 +16741,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "width", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "width", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -20726,12 +16982,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -20739,18 +16993,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "dashArray", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -20760,13 +17002,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -20784,32 +17027,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "dashArray", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "dashArray", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -20820,13 +17038,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -20844,33 +17063,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "dashArray", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "dashArray", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -20883,12 +17076,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -20896,18 +17087,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "dashArray", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -20917,13 +17096,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -20941,32 +17121,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "dashArray", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "dashArray", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -20977,13 +17132,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -21001,33 +17157,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "dashArray", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "dashArray", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -21074,14 +17204,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -21099,33 +17230,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "dashArray", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "dashArray", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -21366,12 +17471,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -21379,18 +17482,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "lineCap", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -21400,13 +17491,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -21424,32 +17516,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "lineCap", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "lineCap", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -21460,13 +17527,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -21484,33 +17552,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "lineCap", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "lineCap", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -21523,12 +17565,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -21536,18 +17576,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "lineCap", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -21557,13 +17585,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -21581,32 +17610,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "lineCap", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "lineCap", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -21617,13 +17621,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -21641,33 +17646,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "lineCap", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "lineCap", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -21714,14 +17693,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -21739,33 +17719,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "lineCap", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "lineCap", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -22006,12 +17960,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -22019,18 +17971,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "fillColor", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -22040,13 +17980,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -22064,32 +18005,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "fillColor", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "fillColor", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -22100,13 +18016,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -22124,33 +18041,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "fillColor", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "fillColor", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -22163,12 +18054,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -22176,18 +18065,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "fillColor", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -22197,13 +18074,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -22221,32 +18099,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "fillColor", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "fillColor", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -22257,13 +18110,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -22281,33 +18135,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "fillColor", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "fillColor", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -22354,14 +18182,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -22379,33 +18208,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "fillColor", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "fillColor", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -22646,12 +18449,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -22659,18 +18460,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "offset", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -22680,13 +18469,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -22704,32 +18494,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "offset", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "offset", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -22740,13 +18505,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -22764,33 +18530,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "offset", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "offset", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -22803,12 +18543,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -22816,18 +18554,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "offset", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -22837,13 +18563,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -22861,32 +18588,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "offset", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "offset", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -22897,13 +18599,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -22921,33 +18624,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "offset", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "offset", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -22994,14 +18671,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -23019,33 +18697,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "offset", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "offset", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -23296,12 +18948,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -23309,18 +18959,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "color", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -23330,13 +18968,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -23354,32 +18993,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "color", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "color", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -23390,13 +19004,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -23414,33 +19029,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "color", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "color", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -23453,12 +19042,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -23466,18 +19053,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "color", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -23487,13 +19062,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -23511,32 +19087,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "color", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "color", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -23547,13 +19098,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -23571,33 +19123,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "color", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "color", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -23644,14 +19170,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -23669,33 +19196,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "color", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "color", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -23939,12 +19440,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -23952,18 +19451,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "width", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -23973,13 +19460,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -23997,32 +19485,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "width", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "width", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -24033,13 +19496,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -24057,33 +19521,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "width", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "width", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -24096,12 +19534,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -24109,18 +19545,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "width", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -24130,13 +19554,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -24154,32 +19579,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "width", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "width", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -24190,13 +19590,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -24214,33 +19615,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "width", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "width", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -24287,14 +19662,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -24312,33 +19688,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "width", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "width", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -24579,12 +19929,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -24592,18 +19940,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "dashArray", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -24613,13 +19949,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -24637,32 +19974,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "dashArray", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "dashArray", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -24673,13 +19985,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -24697,33 +20010,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "dashArray", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "dashArray", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -24736,12 +20023,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -24749,18 +20034,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "dashArray", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -24770,13 +20043,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -24794,32 +20068,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "dashArray", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "dashArray", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -24830,13 +20079,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -24854,33 +20104,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "dashArray", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "dashArray", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -24927,14 +20151,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -24952,33 +20177,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "dashArray", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "dashArray", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -25219,12 +20418,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -25232,18 +20429,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "lineCap", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -25253,13 +20438,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -25277,32 +20463,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "lineCap", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "lineCap", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -25313,13 +20474,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -25337,33 +20499,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "lineCap", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "lineCap", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -25376,12 +20512,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -25389,18 +20523,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "lineCap", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -25410,13 +20532,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -25434,32 +20557,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "lineCap", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "lineCap", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -25470,13 +20568,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -25494,33 +20593,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "lineCap", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "lineCap", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -25567,14 +20640,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -25592,33 +20666,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "lineCap", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "lineCap", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -25859,12 +20907,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -25872,18 +20918,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "fillColor", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -25893,13 +20927,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -25917,32 +20952,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "fillColor", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "fillColor", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -25953,13 +20963,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -25977,33 +20988,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "fillColor", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "fillColor", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -26016,12 +21001,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -26029,18 +21012,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "fillColor", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -26050,13 +21021,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -26074,32 +21046,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "fillColor", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "fillColor", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -26110,13 +21057,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -26134,33 +21082,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "fillColor", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "fillColor", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -26207,14 +21129,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -26232,33 +21155,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "fillColor", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "fillColor", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -26499,12 +21396,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -26512,18 +21407,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "offset", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -26533,13 +21416,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -26557,32 +21441,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "offset", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "offset", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -26593,13 +21452,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -26617,33 +21477,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "offset", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "offset", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -26656,12 +21490,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -26669,18 +21501,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "offset", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -26690,13 +21510,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -26714,32 +21535,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "offset", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "offset", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -26750,13 +21546,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -26774,33 +21571,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "offset", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "offset", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -26847,14 +21618,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -26872,33 +21644,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "offset", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "offset", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -27162,12 +21908,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -27175,18 +21919,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "icon", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -27196,13 +21928,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -27220,32 +21953,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "icon", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "icon", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -27256,13 +21964,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -27280,33 +21989,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "icon", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "icon", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -27319,12 +22002,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -27332,18 +22013,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "icon", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -27353,13 +22022,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -27377,32 +22047,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "icon", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "icon", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -27413,13 +22058,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -27437,33 +22083,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "icon", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "icon", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -27510,14 +22130,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -27535,33 +22156,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "icon", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "icon", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -27668,14 +22263,15 @@ "iconBadges", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -27693,31 +22289,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -27881,12 +22453,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -27894,19 +22464,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -27917,13 +22474,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -27941,34 +22499,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -27980,13 +22511,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -28004,35 +22536,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -28046,12 +22550,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -28059,19 +22561,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -28082,13 +22571,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -28106,34 +22596,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -28145,13 +22608,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -28169,35 +22633,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -28248,14 +22684,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -28273,35 +22710,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconBadges", - "then", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -28546,12 +22955,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -28559,18 +22966,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "iconSize", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -28580,13 +22975,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -28604,32 +23000,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconSize", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "iconSize", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -28640,13 +23011,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -28664,33 +23036,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconSize", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconSize", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -28703,12 +23049,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -28716,18 +23060,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "iconSize", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -28737,13 +23069,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -28761,32 +23094,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconSize", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "iconSize", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -28797,13 +23105,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -28821,33 +23130,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconSize", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconSize", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -28894,14 +23177,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -28919,33 +23203,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconSize", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "iconSize", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -29034,6 +23292,497 @@ "type": "string", "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)" }, + { + "path": [ + "mapRendering", + "renderings", + "anchor" + ], + "required": false, + "hints": { + "question": "What is the anchorpoint of the icon?" + }, + "type": [ + { + "$ref": "#/definitions/TagRenderingConfigJson" + }, + { + "type": "string" + } + ], + "description": "\nThis matches the geographical point with a location on the icon.\nFor example, a feature attached to the ground can use 'bottom' as zooming in will give the appearance of being anchored to a fixed location." + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor" + ], + "required": false, + "hints": {}, + "type": "object", + "description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "id" + ], + "required": false, + "hints": {}, + "type": "string", + "description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "labels" + ], + "required": false, + "hints": {}, + "type": "array", + "description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "classes" + ], + "required": false, + "hints": {}, + "type": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "description": "A list of css-classes to apply to the entire tagRendering if the answer is known (not applied on the question).\nThis is only for advanced users" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "description" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "A human-readable text explaining what this tagRendering does.\nMostly used for the shared tagrenderings" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "render" + ], + "required": false, + "hints": { + "typehint": "rendered" + }, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "object", + "properties": { + "special": { + "allOf": [ + { + "$ref": "#/definitions/Record>" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string" + } + }, + "required": [ + "type" + ] + } + ] + } + }, + "required": [ + "special" + ] + }, + { + "type": "string" + } + ], + "description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '{website}' or include images such as `This is of type A
`" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "condition" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "$ref": "#/definitions/{or:TagConfigJson[];}" + }, + { + "type": "string" + } + ], + "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "condition", + "and" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "condition", + "or" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "metacondition" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "$ref": "#/definitions/{or:TagConfigJson[];}" + }, + { + "type": "string" + } + ], + "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "metacondition", + "and" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "metacondition", + "or" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "freeform" + ], + "required": false, + "hints": {}, + "type": "object", + "description": "Allow freeform text input from the user" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "freeform", + "key" + ], + "required": true, + "hints": {}, + "type": "string", + "description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "mappings" + ], + "required": false, + "hints": {}, + "type": "array", + "description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "mappings", + "if" + ], + "required": true, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "mappings", + "then" + ], + "required": true, + "hints": { + "typehint": "rendered" + }, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "If the condition `if` is met, the text `then` will be rendered.\nIf not known yet, the user will be presented with `then` as an option" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "mappings", + "icon" + ], + "required": false, + "hints": { + "typehint": "icon" + }, + "type": [ + { + "type": "object", + "properties": { + "path": { + "description": "The path to the icon\nType: icon", + "type": "string" + }, + "class": { + "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)", + "type": "string" + } + }, + "required": [ + "path" + ] + }, + { + "type": "string" + } + ], + "description": "An icon supporting this mapping; typically shown pretty small" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "mappings", + "icon", + "path" + ], + "required": true, + "hints": { + "typehint": "icon" + }, + "type": "string", + "description": "The path to the icon" + }, + { + "path": [ + "mapRendering", + "renderings", + "anchor", + "mappings", + "icon", + "class" + ], + "required": false, + "hints": {}, + "type": "string", + "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)" + }, { "path": [ "mapRendering", @@ -29186,12 +23935,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -29199,18 +23946,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "rotation", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -29220,13 +23955,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -29244,32 +23980,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotation", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "rotation", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -29280,13 +23991,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -29304,33 +24016,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotation", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotation", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -29343,12 +24029,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -29356,18 +24040,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "rotation", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -29377,13 +24049,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -29401,32 +24074,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotation", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "rotation", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -29437,13 +24085,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -29461,33 +24110,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotation", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotation", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -29534,14 +24157,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -29559,33 +24183,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotation", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotation", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -29826,12 +24424,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -29839,18 +24435,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "label", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -29860,13 +24444,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -29884,32 +24469,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "label", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "label", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -29920,13 +24480,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -29944,33 +24505,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "label", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "label", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -29983,12 +24518,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -29996,18 +24529,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "label", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -30017,13 +24538,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -30041,32 +24563,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "label", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "label", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -30077,13 +24574,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -30101,33 +24599,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "label", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "label", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -30174,14 +24646,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -30199,33 +24672,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "label", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "label", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -30466,12 +24913,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -30479,18 +24924,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "css", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -30500,13 +24933,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -30524,32 +24958,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "css", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "css", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -30560,13 +24969,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -30584,33 +24994,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "css", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "css", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -30623,12 +25007,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -30636,18 +25018,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "css", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -30657,13 +25027,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -30681,32 +25052,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "css", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "css", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -30717,13 +25063,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -30741,33 +25088,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "css", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "css", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -30814,14 +25135,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -30839,33 +25161,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "css", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "css", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -31106,12 +25402,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -31119,18 +25413,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "cssClasses", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -31140,13 +25422,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -31164,32 +25447,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "cssClasses", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "cssClasses", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -31200,13 +25458,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -31224,33 +25483,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "cssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "cssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -31263,12 +25496,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -31276,18 +25507,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "cssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -31297,13 +25516,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -31321,32 +25541,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "cssClasses", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "cssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -31357,13 +25552,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -31381,33 +25577,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "cssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "cssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -31454,14 +25624,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -31479,33 +25650,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "cssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "cssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -31746,12 +25891,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -31759,18 +25902,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "labelCss", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -31780,13 +25911,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -31804,32 +25936,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCss", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "labelCss", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -31840,13 +25947,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -31864,33 +25972,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCss", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCss", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -31903,12 +25985,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -31916,18 +25996,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "labelCss", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -31937,13 +26005,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -31961,32 +26030,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCss", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "labelCss", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -31997,13 +26041,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -32021,33 +26066,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCss", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCss", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -32094,14 +26113,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -32119,33 +26139,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCss", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCss", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -32386,12 +26380,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -32399,18 +26391,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "labelCssClasses", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -32420,13 +26400,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -32444,32 +26425,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCssClasses", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "labelCssClasses", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -32480,13 +26436,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -32504,33 +26461,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -32543,12 +26474,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -32556,18 +26485,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -32577,13 +26494,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -32601,32 +26519,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -32637,13 +26530,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -32661,33 +26555,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -32734,14 +26602,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -32759,33 +26628,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "labelCssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -33030,12 +26873,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -33043,18 +26884,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "pitchAlignment", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -33064,13 +26893,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -33088,32 +26918,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "pitchAlignment", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "pitchAlignment", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -33124,13 +26929,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -33148,33 +26954,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "pitchAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "pitchAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -33187,12 +26967,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -33200,18 +26978,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -33221,13 +26987,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -33245,32 +27012,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -33281,13 +27023,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -33305,33 +27048,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -33378,14 +27095,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -33403,33 +27121,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "pitchAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "pitchAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -33674,12 +27366,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -33687,18 +27377,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "mapRendering", - "renderings", - "rotationAlignment", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -33708,13 +27386,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -33732,32 +27411,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotationAlignment", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "rotationAlignment", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -33768,13 +27422,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -33792,33 +27447,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotationAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotationAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -33831,12 +27460,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -33844,18 +27471,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mapRendering", @@ -33865,13 +27480,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -33889,32 +27505,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -33925,13 +27516,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -33949,33 +27541,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -34022,14 +27588,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -34047,33 +27614,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotationAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mapRendering", - "renderings", - "rotationAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -34252,82 +27793,6 @@ { "path": [ "presets", - "preciseInput" - ], - "required": false, - "hints": {}, - "type": [ - { - "type": "object", - "properties": { - "preferredBackground": { - "description": "The type of background picture", - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ] - }, - "snapToLayer": { - "description": "If specified, these layers will be shown to and the new point will be snapped towards it", - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ] - }, - "maxSnapDistance": { - "description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10", - "type": "number" - } - } - }, - { - "enum": [ - true - ], - "type": "boolean" - } - ], - "description": "If set, the user will prompted to confirm the location before actually adding the data.\nThis will be with a 'drag crosshair'-method.\n\nIf 'preferredBackgroundCategory' is set, the element will attempt to pick a background layer of that category." - }, - { - "path": [ - "presets", - "preciseInput", - "preferredBackground" - ], - "required": false, - "hints": {}, - "type": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ], - "description": "The type of background picture" - }, - { - "path": [ - "presets", - "preciseInput", "snapToLayer" ], "required": false, @@ -34348,13 +27813,14 @@ { "path": [ "presets", - "preciseInput", "maxSnapDistance" ], "required": false, - "hints": {}, + "hints": { + "default": "10" + }, "type": "number", - "description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10" + "description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n" }, { "path": [ @@ -34564,14 +28030,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -34589,29 +28056,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -34702,12 +28147,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -34718,17 +28161,6 @@ ], "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}" }, - { - "path": [ - "tagRenderings", - "mappings", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "tagRenderings", @@ -34737,13 +28169,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -34761,30 +28194,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "mappings", - "hideInAnswer", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "tagRenderings", - "mappings", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -34794,13 +28204,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -34818,31 +28229,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -34854,12 +28241,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -34867,17 +28252,6 @@ ], "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`" }, - { - "path": [ - "tagRenderings", - "mappings", - "ifnot" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "tagRenderings", @@ -34886,13 +28260,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -34910,30 +28285,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "mappings", - "ifnot", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "tagRenderings", - "mappings", - "ifnot" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -34943,13 +28295,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -34967,31 +28320,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -35014,12 +28343,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -35027,17 +28354,6 @@ ], "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly" }, - { - "path": [ - "tagRenderings", - "mappings", - "priorityIf" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "tagRenderings", @@ -35046,13 +28362,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -35070,30 +28387,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "mappings", - "priorityIf", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "tagRenderings", - "mappings", - "priorityIf" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -35103,13 +28397,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -35127,31 +28422,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -35275,12 +28546,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -35288,16 +28557,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "tagRenderings", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "tagRenderings", @@ -35305,13 +28564,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -35329,28 +28589,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "tagRenderings", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -35359,13 +28598,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -35383,29 +28623,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -35416,12 +28634,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -35429,16 +28645,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "tagRenderings", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "tagRenderings", @@ -35446,13 +28652,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -35470,28 +28677,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "tagRenderings", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -35500,13 +28686,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -35524,29 +28711,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -35695,14 +28860,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -35720,31 +28886,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "override", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "override", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -35840,12 +28982,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -35856,18 +28996,6 @@ ], "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}" }, - { - "path": [ - "tagRenderings", - "override", - "mappings", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "tagRenderings", @@ -35877,13 +29005,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -35901,32 +29030,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "override", - "mappings", - "hideInAnswer", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "tagRenderings", - "override", - "mappings", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -35937,13 +29041,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -35961,33 +29066,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "override", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "override", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -36000,12 +29079,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -36013,18 +29090,6 @@ ], "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`" }, - { - "path": [ - "tagRenderings", - "override", - "mappings", - "ifnot" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "tagRenderings", @@ -36034,13 +29099,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -36058,32 +29124,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "override", - "mappings", - "ifnot", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "tagRenderings", - "override", - "mappings", - "ifnot" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -36094,13 +29135,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -36118,33 +29160,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "override", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "override", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -36169,12 +29185,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -36182,18 +29196,6 @@ ], "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly" }, - { - "path": [ - "tagRenderings", - "override", - "mappings", - "priorityIf" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "tagRenderings", @@ -36203,13 +29205,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -36227,32 +29230,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "override", - "mappings", - "priorityIf", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "tagRenderings", - "override", - "mappings", - "priorityIf" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -36263,13 +29241,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -36287,33 +29266,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "override", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "override", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -36444,12 +29397,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -36457,17 +29408,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "tagRenderings", - "override", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "tagRenderings", @@ -36476,13 +29416,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -36500,30 +29441,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "override", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "tagRenderings", - "override", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -36533,13 +29451,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -36557,31 +29476,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "override", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "override", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -36593,12 +29488,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -36606,17 +29499,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "tagRenderings", - "override", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "tagRenderings", @@ -36625,13 +29507,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -36649,30 +29532,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "override", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "tagRenderings", - "override", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -36682,13 +29542,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -36706,31 +29567,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "override", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "override", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -36898,14 +29735,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -36923,31 +29761,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -37043,12 +29857,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -37059,18 +29871,6 @@ ], "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}" }, - { - "path": [ - "tagRenderings", - "renderings", - "mappings", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "tagRenderings", @@ -37080,13 +29880,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -37104,32 +29905,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "mappings", - "hideInAnswer", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "tagRenderings", - "renderings", - "mappings", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -37140,13 +29916,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -37164,33 +29941,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -37203,12 +29954,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -37216,18 +29965,6 @@ ], "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`" }, - { - "path": [ - "tagRenderings", - "renderings", - "mappings", - "ifnot" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "tagRenderings", @@ -37237,13 +29974,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -37261,32 +29999,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "mappings", - "ifnot", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "tagRenderings", - "renderings", - "mappings", - "ifnot" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -37297,13 +30010,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -37321,33 +30035,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -37372,12 +30060,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -37385,18 +30071,6 @@ ], "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly" }, - { - "path": [ - "tagRenderings", - "renderings", - "mappings", - "priorityIf" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "tagRenderings", @@ -37406,13 +30080,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -37430,32 +30105,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "mappings", - "priorityIf", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "tagRenderings", - "renderings", - "mappings", - "priorityIf" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -37466,13 +30116,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -37490,33 +30141,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -37647,12 +30272,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -37660,17 +30283,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "tagRenderings", - "renderings", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "tagRenderings", @@ -37679,13 +30291,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -37703,30 +30316,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "tagRenderings", - "renderings", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -37736,13 +30326,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -37760,31 +30351,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -37796,12 +30363,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -37809,17 +30374,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "tagRenderings", - "renderings", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "tagRenderings", @@ -37828,13 +30382,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -37852,30 +30407,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "tagRenderings", - "renderings", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -37885,13 +30417,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -37909,31 +30442,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -38094,14 +30603,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -38119,33 +30629,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -38246,12 +30730,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -38262,19 +30744,6 @@ ], "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}" }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "mappings", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "tagRenderings", @@ -38285,13 +30754,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -38309,34 +30779,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "mappings", - "hideInAnswer", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "tagRenderings", - "renderings", - "override", - "mappings", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -38348,13 +30791,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -38372,35 +30816,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -38414,12 +30830,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -38427,19 +30841,6 @@ ], "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`" }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "mappings", - "ifnot" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "tagRenderings", @@ -38450,13 +30851,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -38474,34 +30876,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "mappings", - "ifnot", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "tagRenderings", - "renderings", - "override", - "mappings", - "ifnot" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -38513,13 +30888,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -38537,35 +30913,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -38592,12 +30940,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -38605,19 +30951,6 @@ ], "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly" }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "mappings", - "priorityIf" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "tagRenderings", @@ -38628,13 +30961,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -38652,34 +30986,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "mappings", - "priorityIf", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "tagRenderings", - "renderings", - "override", - "mappings", - "priorityIf" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -38691,13 +30998,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -38715,35 +31023,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -38881,12 +31161,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -38894,18 +31172,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "tagRenderings", @@ -38915,13 +31181,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -38939,32 +31206,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "tagRenderings", - "renderings", - "override", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -38975,13 +31217,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -38999,33 +31242,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -39038,12 +31255,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -39051,18 +31266,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "tagRenderings", @@ -39072,13 +31275,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -39096,32 +31300,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "tagRenderings", - "renderings", - "override", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -39132,13 +31311,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -39156,33 +31336,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "tagRenderings", - "renderings", - "override", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -39247,32 +31401,21 @@ "osmTags" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "filter", - "options", - "osmTags" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -39282,13 +31425,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -39306,30 +31450,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "filter", - "options", - "osmTags", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "filter", - "options", - "osmTags" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -39339,13 +31460,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -39363,31 +31485,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "filter", - "options", - "osmTags", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "filter", - "options", - "osmTags", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -39476,14 +31574,15 @@ "nonDeleteMappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -39501,29 +31600,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "deletion", - "nonDeleteMappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "deletion", - "nonDeleteMappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -39544,12 +31621,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -39557,16 +31632,6 @@ ], "description": "In some cases, the contributor is not allowed to delete the current feature (e.g. because it isn't a point, the point is referenced by a relation or the user isn't experienced enough).\nTo still offer the user a 'delete'-option, the feature is retagged with these tags. This is a soft deletion, as the point isn't actually removed from OSM but rather marked as 'disused'\nIt is important that the feature will be retagged in such a way that it won't be picked up by the layer anymore!\n\nExample (note that \"amenity=\" erases the 'amenity'-key alltogether):\n```\n{\n \"and\": [\"disussed:amenity=public_bookcase\", \"amenity=\"]\n}\n```\n\nor (notice the use of the ':='-tag to copy the old value of 'shop=*' into 'disused:shop='):\n```\n{\n \"and\": [\"disused:shop:={shop}\", \"shop=\"]\n}\n```" }, - { - "path": [ - "deletion", - "softDeletionTags" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "deletion", @@ -39574,13 +31639,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -39598,28 +31664,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "deletion", - "softDeletionTags", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "deletion", - "softDeletionTags" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -39628,13 +31673,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -39652,29 +31698,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "deletion", - "softDeletionTags", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "deletion", - "softDeletionTags", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -39750,9 +31774,11 @@ "units" ], "required": false, - "hints": {}, + "hints": { + "default": "ult: true," + }, "type": "object", - "description": "In some cases, a value is represented in a certain unit (such as meters for heigt/distance/..., km/h for speed, ...)\n\nSometimes, multiple denominations are possible (e.g. km/h vs mile/h; megawatt vs kilowatt vs gigawatt for power generators, ...)\n\nThis brings in some troubles, as there are multiple ways to write it (no denomitation, 'm' vs 'meter' 'metre', ...)\n\nNot only do we want to write consistent data to OSM, we also want to present this consistently to the user.\nThis is handled by defining units.\n\n# Rendering\n\nTo render a value with long (human) denomination, use {canonical(key)}\n\n# Usage\n\nFirst of all, you define which keys have units applied, for example:\n\n```\nunits: [\n appliesTo: [\"maxspeed\", \"maxspeed:hgv\", \"maxspeed:bus\"]\n applicableUnits: [\n ...\n ]\n]\n```\n\nApplicableUnits defines which is the canonical extension, how it is presented to the user, ...:\n\n```\napplicableUnits: [\n{\n canonicalDenomination: \"km/h\",\n alternativeDenomination: [\"km/u\", \"kmh\", \"kph\"]\n default: true,\n human: {\n en: \"kilometer/hour\",\n nl: \"kilometer/uur\"\n },\n humanShort: {\n en: \"km/h\",\n nl: \"km/u\"\n }\n},\n{\n canoncialDenomination: \"mph\",\n ... similar for miles an hour ...\n}\n]\n```\n\n\nIf this is defined, then every key which the denominations apply to (`maxspeed`, `maxspeed:hgv` and `maxspeed:bus`) will be rewritten at the metatagging stage:\nevery value will be parsed and the canonical extension will be added add presented to the other parts of the code.\n\nAlso, if a freeform text field is used, an extra dropdown with applicable denominations will be given" + "description": "In some cases, a value is represented in a certain unit (such as meters for heigt/distance/..., km/h for speed, ...)\n\nSometimes, multiple denominations are possible (e.g. km/h vs mile/h; megawatt vs kilowatt vs gigawatt for power generators, ...)\n\nThis brings in some troubles, as there are multiple ways to write it (no denomitation, 'm' vs 'meter' 'metre', ...)\n\nNot only do we want to write consistent data to OSM, we also want to present this consistently to the user.\nThis is handled by defining units.\n\n# Rendering\n\nTo render a value with long (human) denomination, use {canonical(key)}\n\n# Usage\n\nFirst of all, you define which keys have units applied, for example:\n\n```\nunits: [\n appliesTo: [\"maxspeed\", \"maxspeed:hgv\", \"maxspeed:bus\"]\n applicableUnits: [\n ...\n ]\n]\n```\n\nApplicableUnits defines which is the canonical extension, how it is presented to the user, ...:\n\n```\napplicableUnits: [\n{\n canonicalDenomination: \"km/h\",\n alternativeDenomination: [\"km/u\", \"kmh\", \"kph\"]\n human: {\n en: \"kilometer/hour\",\n nl: \"kilometer/uur\"\n },\n humanShort: {\n en: \"km/h\",\n nl: \"km/u\"\n }\n},\n{\n canoncialDenomination: \"mph\",\n ... similar for miles an hour ...\n}\n]\n```\n\n\nIf this is defined, then every key which the denominations apply to (`maxspeed`, `maxspeed:hgv` and `maxspeed:bus`) will be rewritten at the metatagging stage:\nevery value will be parsed and the canonical extension will be added add presented to the other parts of the code.\n\nAlso, if a freeform text field is used, an extra dropdown with applicable denominations will be given" }, { "path": [ diff --git a/assets/layoutconfigmeta.json b/assets/layoutconfigmeta.json index 809d9227e..03acc73b1 100644 --- a/assets/layoutconfigmeta.json +++ b/assets/layoutconfigmeta.json @@ -151,9 +151,11 @@ "osmApiTileSize" ], "required": false, - "hints": {}, + "hints": { + "default": "overpassMaxZoom + 1" + }, "type": "number", - "description": "When the OSM-api is used to fetch features, it does so in a tiled fashion.\nThese tiles are using a ceratin zoom level, that can be controlled here\nDefault: overpassMaxZoom + 1" + "description": "When the OSM-api is used to fetch features, it does so in a tiled fashion.\nThese tiles are using a ceratin zoom level, that can be controlled here" }, { "path": [ @@ -307,17 +309,21 @@ "source" ], "required": true, - "hints": {}, + "hints": { + "types": "Load data with specific tags from OpenStreetMap ; Load data from an external geojson source ;", + "group": "basic", + "question": "Where should the data be fetched from?" + }, "type": [ { "type": "object", "properties": { "osmTags": { "$ref": "#/definitions/TagConfigJson", - "description": "Every source must set which tags have to be present in order to load the given layer." + "description": "question: Which tags must be present on the feature to show it in this layer?\nEvery source must set which tags have to be present in order to load the given layer." }, "maxCacheAge": { - "description": "The maximum amount of seconds that a tile is allowed to linger in the cache", + "description": "question: How long (in seconds) is the data allowed to remain cached until it must be refreshed?\nThe maximum amount of seconds that a tile is allowed to linger in the cache\n\ntype: nat", "type": "number" } }, @@ -361,7 +367,7 @@ "type": "string" } ], - "description": "This determines where the data for the layer is fetched: from OSM or from an external geojson dataset.\n\nIf no 'geojson' is defined, data will be fetched from overpass and the OSM-API.\n\nEvery source _must_ define which tags _must_ be present in order to be picked up.\n\nNote: a source must always be defined. 'special' is only allowed if this is a builtin-layer" + "description": "\nThis determines where the data for the layer is fetched: from OSM or from an external geojson dataset.\n\nIf no 'geojson' is defined, data will be fetched from overpass and the OSM-API.\n\nEvery source _must_ define which tags _must_ be present in order to be picked up.\n\nNote: a source must always be defined. 'special' is only allowed if this is a builtin-layer\n" }, { "path": [ @@ -369,14 +375,15 @@ "source", "osmTags" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -394,29 +401,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "source", - "osmTags" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "source", - "osmTags" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -425,9 +410,12 @@ "maxCacheAge" ], "required": false, - "hints": {}, + "hints": { + "typehint": "nat", + "question": "How long (in seconds) is the data allowed to remain cached until it must be refreshed?" + }, "type": "number", - "description": "The maximum amount of seconds that a tile is allowed to linger in the cache" + "description": "The maximum amount of seconds that a tile is allowed to linger in the cache\n" }, { "path": [ @@ -519,12 +507,10 @@ }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -532,16 +518,6 @@ ], "description": "If set, only features matching this extra tag will be shown.\nThis is useful to hide certain features from view.\n\nThe default value is 'yes'\n" }, - { - "path": [ - "layers", - "isShown" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -549,13 +525,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -573,28 +550,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "isShown", - "and" - ], - "required": false, - "hints": {}, - "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", - "isShown" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -603,13 +559,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -627,29 +584,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "isShown", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "isShown", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -670,12 +605,14 @@ ], "required": false, "hints": { + "typehint": "nat", "group": "basic", + "default": "0", "question": "At what zoom level should features of the layer be shown?", "ifunset": "Always load this layer, even if the entire world is in view." }, "type": "number", - "description": "The minimum needed zoomlevel required to start loading and displaying the data.\nThis can be used to only show common features (e.g. a bicycle parking) only when the map is zoomed in very much (17).\nThis prevents cluttering the map with thousands of parkings if one is looking to an entire city.\n\nDefault: 0\n" + "description": "The minimum needed zoomlevel required to start loading and displaying the data.\nThis can be used to only show common features (e.g. a bicycle parking) only when the map is zoomed in very much (17).\nThis prevents cluttering the map with thousands of parkings if one is looking to an entire city.\n" }, { "path": [ @@ -696,10 +633,11 @@ ], "required": false, "hints": { - "group": "advanced" + "group": "advanced", + "default": "100 (thus: always visible" }, "type": "number", - "description": "The zoom level at which point the data is hidden again\nDefault: 100 (thus: always visible\n" + "description": "The zoom level at which point the data is hidden again\n" }, { "path": [ @@ -847,12 +785,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -860,17 +796,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "title", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -879,13 +804,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -903,30 +829,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "title", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "title", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -936,13 +839,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -960,31 +864,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "title", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "title", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -996,12 +876,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1009,17 +887,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "title", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -1028,13 +895,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -1052,30 +920,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "title", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "title", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -1085,13 +930,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -1109,31 +955,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "title", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "title", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -1176,14 +998,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -1201,31 +1024,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "title", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "title", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -1477,12 +1276,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1490,17 +1287,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "titleIcons", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -1509,13 +1295,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -1533,30 +1320,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "titleIcons", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "titleIcons", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -1566,13 +1330,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -1590,31 +1355,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "titleIcons", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "titleIcons", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -1626,12 +1367,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -1639,17 +1378,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "titleIcons", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -1658,13 +1386,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -1682,30 +1411,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "titleIcons", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "titleIcons", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -1715,13 +1421,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -1739,31 +1446,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "titleIcons", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "titleIcons", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -1806,14 +1489,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -1831,31 +1515,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "titleIcons", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "titleIcons", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -2147,12 +1807,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -2160,18 +1818,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "icon", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -2181,13 +1827,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -2205,32 +1852,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "icon", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "icon", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -2241,13 +1863,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -2265,33 +1888,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "icon", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "icon", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -2304,12 +1901,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -2317,18 +1912,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "icon", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -2338,13 +1921,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -2362,32 +1946,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "icon", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "icon", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -2398,13 +1957,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -2422,33 +1982,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "icon", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "icon", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -2495,14 +2029,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -2520,33 +2055,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "icon", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "icon", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -2653,14 +2162,15 @@ "iconBadges", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -2678,31 +2188,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "iconBadges", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "iconBadges", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -2866,12 +2352,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -2879,19 +2363,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "iconBadges", - "then", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -2902,13 +2373,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -2926,34 +2398,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "iconBadges", - "then", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "iconBadges", - "then", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -2965,13 +2410,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -2989,35 +2435,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "iconBadges", - "then", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "iconBadges", - "then", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -3031,12 +2449,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -3044,19 +2460,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "iconBadges", - "then", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -3067,13 +2470,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -3091,34 +2495,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "iconBadges", - "then", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "iconBadges", - "then", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -3130,13 +2507,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -3154,35 +2532,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "iconBadges", - "then", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "iconBadges", - "then", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -3233,14 +2583,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -3258,35 +2609,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "iconBadges", - "then", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "iconBadges", - "then", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -3531,12 +2854,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -3544,18 +2865,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "iconSize", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -3565,13 +2874,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -3589,32 +2899,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "iconSize", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "iconSize", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -3625,13 +2910,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -3649,33 +2935,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "iconSize", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "iconSize", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -3688,12 +2948,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -3701,18 +2959,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "iconSize", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -3722,13 +2968,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -3746,32 +2993,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "iconSize", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "iconSize", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -3782,13 +3004,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -3806,33 +3029,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "iconSize", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "iconSize", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -3879,14 +3076,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -3904,33 +3102,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "iconSize", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "iconSize", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -4019,6 +3191,497 @@ "type": "string", "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)" }, + { + "path": [ + "layers", + "mapRendering", + "anchor" + ], + "required": false, + "hints": { + "question": "What is the anchorpoint of the icon?" + }, + "type": [ + { + "$ref": "#/definitions/TagRenderingConfigJson" + }, + { + "type": "string" + } + ], + "description": "\nThis matches the geographical point with a location on the icon.\nFor example, a feature attached to the ground can use 'bottom' as zooming in will give the appearance of being anchored to a fixed location." + }, + { + "path": [ + "layers", + "mapRendering", + "anchor" + ], + "required": false, + "hints": {}, + "type": "object", + "description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one" + }, + { + "path": [ + "layers", + "mapRendering", + "anchor", + "id" + ], + "required": false, + "hints": {}, + "type": "string", + "description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)" + }, + { + "path": [ + "layers", + "mapRendering", + "anchor", + "labels" + ], + "required": false, + "hints": {}, + "type": "array", + "description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away" + }, + { + "path": [ + "layers", + "mapRendering", + "anchor", + "classes" + ], + "required": false, + "hints": {}, + "type": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "description": "A list of css-classes to apply to the entire tagRendering if the answer is known (not applied on the question).\nThis is only for advanced users" + }, + { + "path": [ + "layers", + "mapRendering", + "anchor", + "description" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "A human-readable text explaining what this tagRendering does.\nMostly used for the shared tagrenderings" + }, + { + "path": [ + "layers", + "mapRendering", + "anchor", + "render" + ], + "required": false, + "hints": { + "typehint": "rendered" + }, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "object", + "properties": { + "special": { + "allOf": [ + { + "$ref": "#/definitions/Record>" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string" + } + }, + "required": [ + "type" + ] + } + ] + } + }, + "required": [ + "special" + ] + }, + { + "type": "string" + } + ], + "description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '{website}' or include images such as `This is of type A
`" + }, + { + "path": [ + "layers", + "mapRendering", + "anchor", + "condition" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "$ref": "#/definitions/{or:TagConfigJson[];}" + }, + { + "type": "string" + } + ], + "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" + }, + { + "path": [ + "layers", + "mapRendering", + "anchor", + "condition", + "and" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "mapRendering", + "anchor", + "condition", + "or" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "mapRendering", + "anchor", + "metacondition" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "$ref": "#/definitions/{or:TagConfigJson[];}" + }, + { + "type": "string" + } + ], + "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" + }, + { + "path": [ + "layers", + "mapRendering", + "anchor", + "metacondition", + "and" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "mapRendering", + "anchor", + "metacondition", + "or" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "mapRendering", + "anchor", + "freeform" + ], + "required": false, + "hints": {}, + "type": "object", + "description": "Allow freeform text input from the user" + }, + { + "path": [ + "layers", + "mapRendering", + "anchor", + "freeform", + "key" + ], + "required": true, + "hints": {}, + "type": "string", + "description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown" + }, + { + "path": [ + "layers", + "mapRendering", + "anchor", + "mappings" + ], + "required": false, + "hints": {}, + "type": "array", + "description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes" + }, + { + "path": [ + "layers", + "mapRendering", + "anchor", + "mappings", + "if" + ], + "required": true, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "mapRendering", + "anchor", + "mappings", + "then" + ], + "required": true, + "hints": { + "typehint": "rendered" + }, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "If the condition `if` is met, the text `then` will be rendered.\nIf not known yet, the user will be presented with `then` as an option" + }, + { + "path": [ + "layers", + "mapRendering", + "anchor", + "mappings", + "icon" + ], + "required": false, + "hints": { + "typehint": "icon" + }, + "type": [ + { + "type": "object", + "properties": { + "path": { + "description": "The path to the icon\nType: icon", + "type": "string" + }, + "class": { + "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)", + "type": "string" + } + }, + "required": [ + "path" + ] + }, + { + "type": "string" + } + ], + "description": "An icon supporting this mapping; typically shown pretty small" + }, + { + "path": [ + "layers", + "mapRendering", + "anchor", + "mappings", + "icon", + "path" + ], + "required": true, + "hints": { + "typehint": "icon" + }, + "type": "string", + "description": "The path to the icon" + }, + { + "path": [ + "layers", + "mapRendering", + "anchor", + "mappings", + "icon", + "class" + ], + "required": false, + "hints": {}, + "type": "string", + "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)" + }, { "path": [ "layers", @@ -4171,12 +3834,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -4184,18 +3845,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "rotation", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -4205,13 +3854,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -4229,32 +3879,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "rotation", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "rotation", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -4265,13 +3890,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -4289,33 +3915,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "rotation", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "rotation", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -4328,12 +3928,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -4341,18 +3939,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "rotation", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -4362,13 +3948,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -4386,32 +3973,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "rotation", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "rotation", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -4422,13 +3984,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -4446,33 +4009,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "rotation", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "rotation", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -4519,14 +4056,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -4544,33 +4082,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "rotation", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "rotation", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -4811,12 +4323,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -4824,18 +4334,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "label", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -4845,13 +4343,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -4869,32 +4368,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "label", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "label", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -4905,13 +4379,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -4929,33 +4404,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "label", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "label", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -4968,12 +4417,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -4981,18 +4428,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "label", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -5002,13 +4437,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -5026,32 +4462,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "label", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "label", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -5062,13 +4473,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -5086,33 +4498,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "label", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "label", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -5159,14 +4545,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -5184,33 +4571,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "label", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "label", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -5451,12 +4812,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -5464,18 +4823,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "css", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -5485,13 +4832,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -5509,32 +4857,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "css", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "css", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -5545,13 +4868,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -5569,33 +4893,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "css", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "css", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -5608,12 +4906,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -5621,18 +4917,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "css", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -5642,13 +4926,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -5666,32 +4951,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "css", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "css", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -5702,13 +4962,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -5726,33 +4987,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "css", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "css", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -5799,14 +5034,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -5824,33 +5060,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "css", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "css", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -6091,12 +5301,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -6104,18 +5312,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "cssClasses", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -6125,13 +5321,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -6149,32 +5346,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "cssClasses", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "cssClasses", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -6185,13 +5357,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -6209,33 +5382,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "cssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "cssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -6248,12 +5395,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -6261,18 +5406,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "cssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -6282,13 +5415,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -6306,32 +5440,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "cssClasses", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "cssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -6342,13 +5451,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -6366,33 +5476,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "cssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "cssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -6439,14 +5523,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -6464,33 +5549,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "cssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "cssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -6731,12 +5790,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -6744,18 +5801,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "labelCss", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -6765,13 +5810,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -6789,32 +5835,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "labelCss", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "labelCss", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -6825,13 +5846,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -6849,33 +5871,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "labelCss", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "labelCss", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -6888,12 +5884,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -6901,18 +5895,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "labelCss", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -6922,13 +5904,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -6946,32 +5929,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "labelCss", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "labelCss", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -6982,13 +5940,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -7006,33 +5965,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "labelCss", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "labelCss", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -7079,14 +6012,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -7104,33 +6038,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "labelCss", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "labelCss", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -7371,12 +6279,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -7384,18 +6290,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "labelCssClasses", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -7405,13 +6299,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -7429,32 +6324,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "labelCssClasses", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "labelCssClasses", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -7465,13 +6335,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -7489,33 +6360,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "labelCssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "labelCssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -7528,12 +6373,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -7541,18 +6384,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "labelCssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -7562,13 +6393,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -7586,32 +6418,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "labelCssClasses", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "labelCssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -7622,13 +6429,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -7646,33 +6454,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "labelCssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "labelCssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -7719,14 +6501,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -7744,33 +6527,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "labelCssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "labelCssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -8015,12 +6772,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -8028,18 +6783,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "pitchAlignment", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -8049,13 +6792,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -8073,32 +6817,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "pitchAlignment", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "pitchAlignment", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -8109,13 +6828,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -8133,33 +6853,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "pitchAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "pitchAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -8172,12 +6866,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -8185,18 +6877,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "pitchAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -8206,13 +6886,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -8230,32 +6911,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "pitchAlignment", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "pitchAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -8266,13 +6922,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -8290,33 +6947,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "pitchAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "pitchAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -8363,14 +6994,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -8388,33 +7020,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "pitchAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "pitchAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -8659,12 +7265,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -8672,18 +7276,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "rotationAlignment", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -8693,13 +7285,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -8717,32 +7310,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "rotationAlignment", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "rotationAlignment", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -8753,13 +7321,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -8777,33 +7346,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "rotationAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "rotationAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -8816,12 +7359,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -8829,18 +7370,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "rotationAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -8850,13 +7379,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -8874,32 +7404,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "rotationAlignment", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "rotationAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -8910,13 +7415,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -8934,33 +7440,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "rotationAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "rotationAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -9007,14 +7487,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -9032,33 +7513,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "rotationAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "rotationAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -9309,12 +7764,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -9322,18 +7775,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "color", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -9343,13 +7784,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -9367,32 +7809,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "color", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "color", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -9403,13 +7820,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -9427,33 +7845,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "color", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "color", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -9466,12 +7858,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -9479,18 +7869,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "color", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -9500,13 +7878,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -9524,32 +7903,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "color", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "color", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -9560,13 +7914,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -9584,33 +7939,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "color", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "color", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -9657,14 +7986,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -9682,33 +8012,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "color", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "color", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -9952,12 +8256,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -9965,18 +8267,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "width", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -9986,13 +8276,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -10010,32 +8301,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "width", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "width", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -10046,13 +8312,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -10070,33 +8337,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "width", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "width", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -10109,12 +8350,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -10122,18 +8361,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "width", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -10143,13 +8370,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -10167,32 +8395,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "width", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "width", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -10203,13 +8406,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -10227,33 +8431,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "width", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "width", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -10300,14 +8478,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -10325,33 +8504,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "width", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "width", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -10592,12 +8745,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -10605,18 +8756,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "dashArray", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -10626,13 +8765,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -10650,32 +8790,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "dashArray", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "dashArray", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -10686,13 +8801,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -10710,33 +8826,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "dashArray", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "dashArray", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -10749,12 +8839,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -10762,18 +8850,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "dashArray", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -10783,13 +8859,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -10807,32 +8884,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "dashArray", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "dashArray", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -10843,13 +8895,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -10867,33 +8920,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "dashArray", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "dashArray", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -10940,14 +8967,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -10965,33 +8993,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "dashArray", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "dashArray", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -11232,12 +9234,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -11245,18 +9245,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "lineCap", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -11266,13 +9254,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -11290,32 +9279,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "lineCap", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "lineCap", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -11326,13 +9290,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -11350,33 +9315,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "lineCap", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "lineCap", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -11389,12 +9328,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -11402,18 +9339,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "lineCap", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -11423,13 +9348,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -11447,32 +9373,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "lineCap", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "lineCap", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -11483,13 +9384,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -11507,33 +9409,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "lineCap", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "lineCap", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -11580,14 +9456,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -11605,33 +9482,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "lineCap", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "lineCap", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -11872,12 +9723,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -11885,18 +9734,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "fillColor", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -11906,13 +9743,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -11930,32 +9768,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "fillColor", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "fillColor", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -11966,13 +9779,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -11990,33 +9804,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "fillColor", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "fillColor", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -12029,12 +9817,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -12042,18 +9828,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "fillColor", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -12063,13 +9837,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -12087,32 +9862,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "fillColor", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "fillColor", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -12123,13 +9873,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -12147,33 +9898,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "fillColor", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "fillColor", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -12220,14 +9945,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -12245,33 +9971,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "fillColor", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "fillColor", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -12512,12 +10212,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -12525,18 +10223,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "offset", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -12546,13 +10232,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -12570,32 +10257,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "offset", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "offset", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -12606,13 +10268,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -12630,33 +10293,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "offset", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "offset", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -12669,12 +10306,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -12682,18 +10317,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "offset", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -12703,13 +10326,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -12727,32 +10351,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "offset", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "offset", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -12763,13 +10362,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -12787,33 +10387,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "offset", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "offset", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -12860,14 +10434,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -12885,33 +10460,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "offset", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "offset", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -13195,12 +10744,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -13208,19 +10755,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "icon", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -13231,13 +10765,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -13255,34 +10790,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "icon", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "icon", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -13294,13 +10802,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -13318,35 +10827,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "icon", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "icon", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -13360,12 +10841,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -13373,19 +10852,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "icon", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -13396,13 +10862,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -13420,34 +10887,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "icon", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "icon", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -13459,13 +10899,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -13483,35 +10924,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "icon", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "icon", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -13562,14 +10975,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -13587,35 +11001,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "icon", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "icon", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -13728,14 +11114,15 @@ "iconBadges", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -13753,33 +11140,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -13951,12 +11312,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -13964,20 +11323,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -13989,13 +11334,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -14013,36 +11359,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -14055,13 +11372,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -14079,37 +11397,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -14124,12 +11412,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -14137,20 +11423,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -14162,13 +11434,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -14186,36 +11459,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -14228,13 +11472,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -14252,37 +11497,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -14337,14 +11552,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -14362,37 +11578,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "then", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "then", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -14649,12 +11835,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -14662,19 +11846,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconSize", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -14685,13 +11856,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -14709,34 +11881,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconSize", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "iconSize", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -14748,13 +11893,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -14772,35 +11918,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconSize", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconSize", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -14814,12 +11932,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -14827,19 +11943,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconSize", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -14850,13 +11953,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -14874,34 +11978,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconSize", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "iconSize", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -14913,13 +11990,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -14937,35 +12015,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconSize", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconSize", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -15016,14 +12066,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -15041,35 +12092,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconSize", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconSize", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -15162,6 +12185,518 @@ "type": "string", "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)" }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor" + ], + "required": false, + "hints": { + "question": "What is the anchorpoint of the icon?" + }, + "type": [ + { + "$ref": "#/definitions/TagRenderingConfigJson" + }, + { + "type": "string" + } + ], + "description": "\nThis matches the geographical point with a location on the icon.\nFor example, a feature attached to the ground can use 'bottom' as zooming in will give the appearance of being anchored to a fixed location." + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor" + ], + "required": false, + "hints": {}, + "type": "object", + "description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "id" + ], + "required": false, + "hints": {}, + "type": "string", + "description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "labels" + ], + "required": false, + "hints": {}, + "type": "array", + "description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "classes" + ], + "required": false, + "hints": {}, + "type": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "description": "A list of css-classes to apply to the entire tagRendering if the answer is known (not applied on the question).\nThis is only for advanced users" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "description" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "A human-readable text explaining what this tagRendering does.\nMostly used for the shared tagrenderings" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "render" + ], + "required": false, + "hints": { + "typehint": "rendered" + }, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "object", + "properties": { + "special": { + "allOf": [ + { + "$ref": "#/definitions/Record>" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string" + } + }, + "required": [ + "type" + ] + } + ] + } + }, + "required": [ + "special" + ] + }, + { + "type": "string" + } + ], + "description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '{website}' or include images such as `This is of type A
`" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "condition" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "$ref": "#/definitions/{or:TagConfigJson[];}" + }, + { + "type": "string" + } + ], + "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "condition", + "and" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "condition", + "or" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "metacondition" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "$ref": "#/definitions/{or:TagConfigJson[];}" + }, + { + "type": "string" + } + ], + "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "metacondition", + "and" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "metacondition", + "or" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "freeform" + ], + "required": false, + "hints": {}, + "type": "object", + "description": "Allow freeform text input from the user" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "freeform", + "key" + ], + "required": true, + "hints": {}, + "type": "string", + "description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "mappings" + ], + "required": false, + "hints": {}, + "type": "array", + "description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "mappings", + "if" + ], + "required": true, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "mappings", + "then" + ], + "required": true, + "hints": { + "typehint": "rendered" + }, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "If the condition `if` is met, the text `then` will be rendered.\nIf not known yet, the user will be presented with `then` as an option" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "mappings", + "icon" + ], + "required": false, + "hints": { + "typehint": "icon" + }, + "type": [ + { + "type": "object", + "properties": { + "path": { + "description": "The path to the icon\nType: icon", + "type": "string" + }, + "class": { + "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)", + "type": "string" + } + }, + "required": [ + "path" + ] + }, + { + "type": "string" + } + ], + "description": "An icon supporting this mapping; typically shown pretty small" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "mappings", + "icon", + "path" + ], + "required": true, + "hints": { + "typehint": "icon" + }, + "type": "string", + "description": "The path to the icon" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "mappings", + "icon", + "class" + ], + "required": false, + "hints": {}, + "type": "string", + "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)" + }, { "path": [ "layers", @@ -15322,12 +12857,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -15335,19 +12868,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotation", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -15358,13 +12878,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -15382,34 +12903,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotation", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "rotation", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -15421,13 +12915,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -15445,35 +12940,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotation", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotation", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -15487,12 +12954,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -15500,19 +12965,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotation", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -15523,13 +12975,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -15547,34 +13000,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotation", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "rotation", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -15586,13 +13012,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -15610,35 +13037,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotation", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotation", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -15689,14 +13088,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -15714,35 +13114,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotation", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotation", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -15995,12 +13367,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -16008,19 +13378,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "label", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -16031,13 +13388,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -16055,34 +13413,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "label", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "label", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -16094,13 +13425,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -16118,35 +13450,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "label", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "label", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -16160,12 +13464,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -16173,19 +13475,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "label", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -16196,13 +13485,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -16220,34 +13510,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "label", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "label", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -16259,13 +13522,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -16283,35 +13547,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "label", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "label", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -16362,14 +13598,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -16387,35 +13624,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "label", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "label", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -16668,12 +13877,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -16681,19 +13888,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "css", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -16704,13 +13898,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -16728,34 +13923,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "css", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "css", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -16767,13 +13935,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -16791,35 +13960,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "css", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "css", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -16833,12 +13974,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -16846,19 +13985,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "css", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -16869,13 +13995,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -16893,34 +14020,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "css", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "css", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -16932,13 +14032,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -16956,35 +14057,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "css", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "css", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -17035,14 +14108,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -17060,35 +14134,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "css", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "css", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -17341,12 +14387,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -17354,19 +14398,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "cssClasses", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -17377,13 +14408,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -17401,34 +14433,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "cssClasses", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "cssClasses", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -17440,13 +14445,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -17464,35 +14470,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "cssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "cssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -17506,12 +14484,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -17519,19 +14495,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "cssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -17542,13 +14505,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -17566,34 +14530,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "cssClasses", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "cssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -17605,13 +14542,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -17629,35 +14567,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "cssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "cssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -17708,14 +14618,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -17733,35 +14644,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "cssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "cssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -18014,12 +14897,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -18027,19 +14908,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCss", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -18050,13 +14918,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -18074,34 +14943,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCss", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "labelCss", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -18113,13 +14955,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -18137,35 +14980,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCss", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCss", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -18179,12 +14994,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -18192,19 +15005,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCss", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -18215,13 +15015,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -18239,34 +15040,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCss", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "labelCss", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -18278,13 +15052,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -18302,35 +15077,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCss", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCss", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -18381,14 +15128,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -18406,35 +15154,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCss", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCss", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -18687,12 +15407,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -18700,19 +15418,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCssClasses", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -18723,13 +15428,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -18747,34 +15453,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCssClasses", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "labelCssClasses", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -18786,13 +15465,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -18810,35 +15490,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -18852,12 +15504,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -18865,19 +15515,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -18888,13 +15525,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -18912,34 +15550,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -18951,13 +15562,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -18975,35 +15587,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -19054,14 +15638,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -19079,35 +15664,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -19364,12 +15921,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -19377,19 +15932,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "pitchAlignment", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -19400,13 +15942,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -19424,34 +15967,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "pitchAlignment", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "pitchAlignment", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -19463,13 +15979,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -19487,35 +16004,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "pitchAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "pitchAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -19529,12 +16018,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -19542,19 +16029,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -19565,13 +16039,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -19589,34 +16064,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -19628,13 +16076,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -19652,35 +16101,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -19731,14 +16152,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -19756,35 +16178,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "pitchAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "pitchAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -20041,12 +16435,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -20054,19 +16446,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotationAlignment", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -20077,13 +16456,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -20101,34 +16481,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotationAlignment", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "rotationAlignment", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -20140,13 +16493,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -20164,35 +16518,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotationAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotationAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -20206,12 +16532,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -20219,19 +16543,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -20242,13 +16553,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -20266,34 +16578,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -20305,13 +16590,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -20329,35 +16615,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -20408,14 +16666,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -20433,35 +16692,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotationAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotationAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -20725,12 +16956,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -20738,19 +16967,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "color", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -20761,13 +16977,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -20785,34 +17002,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "color", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "color", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -20824,13 +17014,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -20848,35 +17039,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "color", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "color", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -20890,12 +17053,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -20903,19 +17064,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "color", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -20926,13 +17074,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -20950,34 +17099,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "color", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "color", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -20989,13 +17111,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -21013,35 +17136,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "color", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "color", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -21092,14 +17187,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -21117,35 +17213,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "color", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "color", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -21401,12 +17469,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -21414,19 +17480,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "width", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -21437,13 +17490,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -21461,34 +17515,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "width", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "width", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -21500,13 +17527,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -21524,35 +17552,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "width", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "width", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -21566,12 +17566,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -21579,19 +17577,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "width", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -21602,13 +17587,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -21626,34 +17612,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "width", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "width", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -21665,13 +17624,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -21689,35 +17649,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "width", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "width", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -21768,14 +17700,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -21793,35 +17726,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "width", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "width", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -22074,12 +17979,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -22087,19 +17990,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "dashArray", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -22110,13 +18000,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -22134,34 +18025,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "dashArray", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "dashArray", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -22173,13 +18037,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -22197,35 +18062,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "dashArray", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "dashArray", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -22239,12 +18076,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -22252,19 +18087,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "dashArray", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -22275,13 +18097,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -22299,34 +18122,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "dashArray", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "dashArray", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -22338,13 +18134,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -22362,35 +18159,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "dashArray", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "dashArray", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -22441,14 +18210,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -22466,35 +18236,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "dashArray", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "dashArray", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -22747,12 +18489,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -22760,19 +18500,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "lineCap", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -22783,13 +18510,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -22807,34 +18535,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "lineCap", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "lineCap", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -22846,13 +18547,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -22870,35 +18572,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "lineCap", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "lineCap", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -22912,12 +18586,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -22925,19 +18597,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "lineCap", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -22948,13 +18607,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -22972,34 +18632,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "lineCap", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "lineCap", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -23011,13 +18644,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -23035,35 +18669,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "lineCap", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "lineCap", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -23114,14 +18720,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -23139,35 +18746,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "lineCap", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "lineCap", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -23420,12 +18999,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -23433,19 +19010,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "fillColor", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -23456,13 +19020,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -23480,34 +19045,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "fillColor", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "fillColor", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -23519,13 +19057,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -23543,35 +19082,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "fillColor", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "fillColor", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -23585,12 +19096,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -23598,19 +19107,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "fillColor", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -23621,13 +19117,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -23645,34 +19142,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "fillColor", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "fillColor", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -23684,13 +19154,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -23708,35 +19179,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "fillColor", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "fillColor", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -23787,14 +19230,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -23812,35 +19256,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "fillColor", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "fillColor", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -24093,12 +19509,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -24106,19 +19520,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "offset", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -24129,13 +19530,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -24153,34 +19555,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "offset", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "offset", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -24192,13 +19567,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -24216,35 +19592,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "offset", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "offset", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -24258,12 +19606,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -24271,19 +19617,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "offset", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -24294,13 +19627,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -24318,34 +19652,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "offset", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "offset", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -24357,13 +19664,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -24381,35 +19689,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "offset", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "offset", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -24460,14 +19740,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -24485,35 +19766,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "offset", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "offset", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -24777,12 +20030,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -24790,19 +20041,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "color", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -24813,13 +20051,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -24837,34 +20076,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "color", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "color", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -24876,13 +20088,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -24900,35 +20113,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "color", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "color", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -24942,12 +20127,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -24955,19 +20138,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "color", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -24978,13 +20148,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -25002,34 +20173,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "color", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "color", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -25041,13 +20185,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -25065,35 +20210,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "color", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "color", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -25144,14 +20261,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -25169,35 +20287,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "color", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "color", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -25453,12 +20543,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -25466,19 +20554,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "width", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -25489,13 +20564,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -25513,34 +20589,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "width", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "width", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -25552,13 +20601,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -25576,35 +20626,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "width", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "width", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -25618,12 +20640,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -25631,19 +20651,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "width", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -25654,13 +20661,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -25678,34 +20686,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "width", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "width", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -25717,13 +20698,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -25741,35 +20723,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "width", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "width", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -25820,14 +20774,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -25845,35 +20800,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "width", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "width", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -26126,12 +21053,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -26139,19 +21064,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "dashArray", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -26162,13 +21074,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -26186,34 +21099,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "dashArray", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "dashArray", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -26225,13 +21111,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -26249,35 +21136,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "dashArray", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "dashArray", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -26291,12 +21150,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -26304,19 +21161,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "dashArray", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -26327,13 +21171,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -26351,34 +21196,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "dashArray", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "dashArray", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -26390,13 +21208,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -26414,35 +21233,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "dashArray", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "dashArray", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -26493,14 +21284,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -26518,35 +21310,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "dashArray", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "dashArray", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -26799,12 +21563,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -26812,19 +21574,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "lineCap", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -26835,13 +21584,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -26859,34 +21609,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "lineCap", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "lineCap", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -26898,13 +21621,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -26922,35 +21646,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "lineCap", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "lineCap", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -26964,12 +21660,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -26977,19 +21671,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "lineCap", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -27000,13 +21681,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -27024,34 +21706,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "lineCap", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "lineCap", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -27063,13 +21718,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -27087,35 +21743,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "lineCap", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "lineCap", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -27166,14 +21794,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -27191,35 +21820,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "lineCap", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "lineCap", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -27472,12 +22073,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -27485,19 +22084,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "fillColor", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -27508,13 +22094,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -27532,34 +22119,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "fillColor", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "fillColor", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -27571,13 +22131,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -27595,35 +22156,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "fillColor", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "fillColor", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -27637,12 +22170,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -27650,19 +22181,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "fillColor", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -27673,13 +22191,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -27697,34 +22216,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "fillColor", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "fillColor", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -27736,13 +22228,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -27760,35 +22253,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "fillColor", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "fillColor", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -27839,14 +22304,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -27864,35 +22330,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "fillColor", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "fillColor", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -28145,12 +22583,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -28158,19 +22594,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "offset", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -28181,13 +22604,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -28205,34 +22629,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "offset", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "offset", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -28244,13 +22641,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -28268,35 +22666,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "offset", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "offset", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -28310,12 +22680,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -28323,19 +22691,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "offset", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -28346,13 +22701,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -28370,34 +22726,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "offset", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "offset", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -28409,13 +22738,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -28433,35 +22763,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "offset", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "offset", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -28512,14 +22814,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -28537,35 +22840,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "offset", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "offset", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -28843,12 +23118,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -28856,19 +23129,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "icon", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -28879,13 +23139,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -28903,34 +23164,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "icon", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "icon", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -28942,13 +23176,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -28966,35 +23201,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "icon", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "icon", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -29008,12 +23215,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -29021,19 +23226,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "icon", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -29044,13 +23236,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -29068,34 +23261,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "icon", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "icon", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -29107,13 +23273,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -29131,35 +23298,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "icon", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "icon", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -29210,14 +23349,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -29235,35 +23375,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "icon", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "icon", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -29376,14 +23488,15 @@ "iconBadges", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -29401,33 +23514,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -29599,12 +23686,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -29612,20 +23697,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -29637,13 +23708,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -29661,36 +23733,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -29703,13 +23746,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -29727,37 +23771,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -29772,12 +23786,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -29785,20 +23797,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -29810,13 +23808,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -29834,36 +23833,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -29876,13 +23846,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -29900,37 +23871,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -29985,14 +23926,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -30010,37 +23952,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "then", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconBadges", - "then", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -30297,12 +24209,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -30310,19 +24220,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconSize", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -30333,13 +24230,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -30357,34 +24255,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconSize", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "iconSize", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -30396,13 +24267,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -30420,35 +24292,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconSize", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconSize", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -30462,12 +24306,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -30475,19 +24317,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconSize", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -30498,13 +24327,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -30522,34 +24352,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconSize", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "iconSize", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -30561,13 +24364,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -30585,35 +24389,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconSize", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconSize", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -30664,14 +24440,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -30689,35 +24466,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconSize", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "iconSize", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -30810,6 +24559,518 @@ "type": "string", "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)" }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor" + ], + "required": false, + "hints": { + "question": "What is the anchorpoint of the icon?" + }, + "type": [ + { + "$ref": "#/definitions/TagRenderingConfigJson" + }, + { + "type": "string" + } + ], + "description": "\nThis matches the geographical point with a location on the icon.\nFor example, a feature attached to the ground can use 'bottom' as zooming in will give the appearance of being anchored to a fixed location." + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor" + ], + "required": false, + "hints": {}, + "type": "object", + "description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "id" + ], + "required": false, + "hints": {}, + "type": "string", + "description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "labels" + ], + "required": false, + "hints": {}, + "type": "array", + "description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "classes" + ], + "required": false, + "hints": {}, + "type": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "description": "A list of css-classes to apply to the entire tagRendering if the answer is known (not applied on the question).\nThis is only for advanced users" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "description" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "A human-readable text explaining what this tagRendering does.\nMostly used for the shared tagrenderings" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "render" + ], + "required": false, + "hints": { + "typehint": "rendered" + }, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "object", + "properties": { + "special": { + "allOf": [ + { + "$ref": "#/definitions/Record>" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string" + } + }, + "required": [ + "type" + ] + } + ] + } + }, + "required": [ + "special" + ] + }, + { + "type": "string" + } + ], + "description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '{website}' or include images such as `This is of type A
`" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "condition" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "$ref": "#/definitions/{or:TagConfigJson[];}" + }, + { + "type": "string" + } + ], + "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "condition", + "and" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "condition", + "or" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "metacondition" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "$ref": "#/definitions/{or:TagConfigJson[];}" + }, + { + "type": "string" + } + ], + "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "metacondition", + "and" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "metacondition", + "or" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "freeform" + ], + "required": false, + "hints": {}, + "type": "object", + "description": "Allow freeform text input from the user" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "freeform", + "key" + ], + "required": true, + "hints": {}, + "type": "string", + "description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "mappings" + ], + "required": false, + "hints": {}, + "type": "array", + "description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "mappings", + "if" + ], + "required": true, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "mappings", + "then" + ], + "required": true, + "hints": { + "typehint": "rendered" + }, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "If the condition `if` is met, the text `then` will be rendered.\nIf not known yet, the user will be presented with `then` as an option" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "mappings", + "icon" + ], + "required": false, + "hints": { + "typehint": "icon" + }, + "type": [ + { + "type": "object", + "properties": { + "path": { + "description": "The path to the icon\nType: icon", + "type": "string" + }, + "class": { + "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)", + "type": "string" + } + }, + "required": [ + "path" + ] + }, + { + "type": "string" + } + ], + "description": "An icon supporting this mapping; typically shown pretty small" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "mappings", + "icon", + "path" + ], + "required": true, + "hints": { + "typehint": "icon" + }, + "type": "string", + "description": "The path to the icon" + }, + { + "path": [ + "layers", + "mapRendering", + "renderings", + "anchor", + "mappings", + "icon", + "class" + ], + "required": false, + "hints": {}, + "type": "string", + "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)" + }, { "path": [ "layers", @@ -30970,12 +25231,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -30983,19 +25242,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotation", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -31006,13 +25252,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -31030,34 +25277,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotation", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "rotation", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -31069,13 +25289,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -31093,35 +25314,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotation", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotation", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -31135,12 +25328,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -31148,19 +25339,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotation", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -31171,13 +25349,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -31195,34 +25374,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotation", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "rotation", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -31234,13 +25386,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -31258,35 +25411,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotation", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotation", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -31337,14 +25462,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -31362,35 +25488,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotation", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotation", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -31643,12 +25741,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -31656,19 +25752,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "label", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -31679,13 +25762,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -31703,34 +25787,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "label", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "label", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -31742,13 +25799,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -31766,35 +25824,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "label", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "label", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -31808,12 +25838,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -31821,19 +25849,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "label", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -31844,13 +25859,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -31868,34 +25884,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "label", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "label", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -31907,13 +25896,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -31931,35 +25921,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "label", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "label", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -32010,14 +25972,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -32035,35 +25998,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "label", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "label", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -32316,12 +26251,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -32329,19 +26262,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "css", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -32352,13 +26272,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -32376,34 +26297,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "css", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "css", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -32415,13 +26309,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -32439,35 +26334,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "css", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "css", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -32481,12 +26348,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -32494,19 +26359,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "css", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -32517,13 +26369,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -32541,34 +26394,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "css", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "css", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -32580,13 +26406,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -32604,35 +26431,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "css", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "css", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -32683,14 +26482,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -32708,35 +26508,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "css", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "css", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -32989,12 +26761,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -33002,19 +26772,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "cssClasses", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -33025,13 +26782,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -33049,34 +26807,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "cssClasses", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "cssClasses", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -33088,13 +26819,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -33112,35 +26844,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "cssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "cssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -33154,12 +26858,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -33167,19 +26869,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "cssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -33190,13 +26879,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -33214,34 +26904,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "cssClasses", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "cssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -33253,13 +26916,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -33277,35 +26941,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "cssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "cssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -33356,14 +26992,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -33381,35 +27018,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "cssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "cssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -33662,12 +27271,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -33675,19 +27282,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCss", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -33698,13 +27292,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -33722,34 +27317,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCss", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "labelCss", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -33761,13 +27329,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -33785,35 +27354,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCss", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCss", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -33827,12 +27368,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -33840,19 +27379,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCss", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -33863,13 +27389,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -33887,34 +27414,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCss", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "labelCss", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -33926,13 +27426,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -33950,35 +27451,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCss", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCss", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -34029,14 +27502,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -34054,35 +27528,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCss", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCss", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -34335,12 +27781,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -34348,19 +27792,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCssClasses", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -34371,13 +27802,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -34395,34 +27827,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCssClasses", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "labelCssClasses", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -34434,13 +27839,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -34458,35 +27864,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -34500,12 +27878,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -34513,19 +27889,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -34536,13 +27899,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -34560,34 +27924,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -34599,13 +27936,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -34623,35 +27961,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -34702,14 +28012,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -34727,35 +28038,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "labelCssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -35012,12 +28295,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -35025,19 +28306,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "pitchAlignment", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -35048,13 +28316,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -35072,34 +28341,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "pitchAlignment", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "pitchAlignment", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -35111,13 +28353,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -35135,35 +28378,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "pitchAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "pitchAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -35177,12 +28392,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -35190,19 +28403,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -35213,13 +28413,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -35237,34 +28438,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -35276,13 +28450,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -35300,35 +28475,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -35379,14 +28526,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -35404,35 +28552,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "pitchAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "pitchAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -35689,12 +28809,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -35702,19 +28820,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotationAlignment", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -35725,13 +28830,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -35749,34 +28855,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotationAlignment", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "rotationAlignment", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -35788,13 +28867,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -35812,35 +28892,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotationAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotationAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -35854,12 +28906,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -35867,19 +28917,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -35890,13 +28927,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -35914,34 +28952,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -35953,13 +28964,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -35977,35 +28989,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -36056,14 +29040,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -36081,35 +29066,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotationAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "mapRendering", - "renderings", - "rotationAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -36299,84 +29256,6 @@ "path": [ "layers", "presets", - "preciseInput" - ], - "required": false, - "hints": {}, - "type": [ - { - "type": "object", - "properties": { - "preferredBackground": { - "description": "The type of background picture", - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ] - }, - "snapToLayer": { - "description": "If specified, these layers will be shown to and the new point will be snapped towards it", - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ] - }, - "maxSnapDistance": { - "description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10", - "type": "number" - } - } - }, - { - "enum": [ - true - ], - "type": "boolean" - } - ], - "description": "If set, the user will prompted to confirm the location before actually adding the data.\nThis will be with a 'drag crosshair'-method.\n\nIf 'preferredBackgroundCategory' is set, the element will attempt to pick a background layer of that category." - }, - { - "path": [ - "layers", - "presets", - "preciseInput", - "preferredBackground" - ], - "required": false, - "hints": {}, - "type": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ], - "description": "The type of background picture" - }, - { - "path": [ - "layers", - "presets", - "preciseInput", "snapToLayer" ], "required": false, @@ -36398,13 +29277,14 @@ "path": [ "layers", "presets", - "preciseInput", "maxSnapDistance" ], "required": false, - "hints": {}, + "hints": { + "default": "10" + }, "type": "number", - "description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10" + "description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n" }, { "path": [ @@ -36628,14 +29508,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -36653,31 +29534,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -36773,12 +29630,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -36789,18 +29644,6 @@ ], "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}" }, - { - "path": [ - "layers", - "tagRenderings", - "mappings", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -36810,13 +29653,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -36834,32 +29678,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "mappings", - "hideInAnswer", - "and" - ], - "required": false, - "hints": {}, - "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", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -36870,13 +29689,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -36894,33 +29714,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -36933,12 +29727,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -36946,18 +29738,6 @@ ], "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`" }, - { - "path": [ - "layers", - "tagRenderings", - "mappings", - "ifnot" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -36967,13 +29747,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -36991,32 +29772,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "mappings", - "ifnot", - "and" - ], - "required": false, - "hints": {}, - "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", - "ifnot" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -37027,13 +29783,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -37051,33 +29808,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -37102,12 +29833,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -37115,18 +29844,6 @@ ], "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly" }, - { - "path": [ - "layers", - "tagRenderings", - "mappings", - "priorityIf" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -37136,13 +29853,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -37160,32 +29878,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "mappings", - "priorityIf", - "and" - ], - "required": false, - "hints": {}, - "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", - "priorityIf" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -37196,13 +29889,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -37220,33 +29914,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -37377,12 +30045,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -37390,17 +30056,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "tagRenderings", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -37409,13 +30064,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -37433,30 +30089,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -37466,13 +30099,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -37490,31 +30124,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -37526,12 +30136,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -37539,17 +30147,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "tagRenderings", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -37558,13 +30155,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -37582,30 +30180,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -37615,13 +30190,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -37639,31 +30215,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -37824,14 +30376,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -37849,33 +30402,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -37976,12 +30503,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -37992,19 +30517,6 @@ ], "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}" }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "mappings", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -38015,13 +30527,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -38039,34 +30552,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "mappings", - "hideInAnswer", - "and" - ], - "required": false, - "hints": {}, - "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", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -38078,13 +30564,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -38102,35 +30589,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -38144,12 +30603,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -38157,19 +30614,6 @@ ], "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`" }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "mappings", - "ifnot" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -38180,13 +30624,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -38204,34 +30649,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "mappings", - "ifnot", - "and" - ], - "required": false, - "hints": {}, - "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", - "ifnot" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -38243,13 +30661,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -38267,35 +30686,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -38322,12 +30713,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -38335,19 +30724,6 @@ ], "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly" }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "mappings", - "priorityIf" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -38358,13 +30734,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -38382,34 +30759,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "mappings", - "priorityIf", - "and" - ], - "required": false, - "hints": {}, - "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", - "priorityIf" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -38421,13 +30771,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -38445,35 +30796,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -38611,12 +30934,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -38624,18 +30945,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -38645,13 +30954,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -38669,32 +30979,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -38705,13 +30990,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -38729,33 +31015,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -38768,12 +31028,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -38781,18 +31039,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -38802,13 +31048,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -38826,32 +31073,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -38862,13 +31084,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -38886,33 +31109,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "override", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -39094,14 +31291,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -39119,33 +31317,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -39246,12 +31418,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -39262,19 +31432,6 @@ ], "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}" }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "mappings", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -39285,13 +31442,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -39309,34 +31467,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "mappings", - "hideInAnswer", - "and" - ], - "required": false, - "hints": {}, - "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", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -39348,13 +31479,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -39372,35 +31504,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -39414,12 +31518,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -39427,19 +31529,6 @@ ], "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`" }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "mappings", - "ifnot" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -39450,13 +31539,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -39474,34 +31564,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "mappings", - "ifnot", - "and" - ], - "required": false, - "hints": {}, - "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", - "ifnot" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -39513,13 +31576,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -39537,35 +31601,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -39592,12 +31628,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -39605,19 +31639,6 @@ ], "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly" }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "mappings", - "priorityIf" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -39628,13 +31649,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -39652,34 +31674,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "mappings", - "priorityIf", - "and" - ], - "required": false, - "hints": {}, - "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", - "priorityIf" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -39691,13 +31686,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -39715,35 +31711,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -39881,12 +31849,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -39894,18 +31860,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -39915,13 +31869,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -39939,32 +31894,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -39975,13 +31905,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -39999,33 +31930,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -40038,12 +31943,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -40051,18 +31954,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -40072,13 +31963,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -40096,32 +31988,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -40132,13 +31999,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -40156,33 +32024,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -40355,14 +32197,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -40380,35 +32223,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "override", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single 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", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -40514,12 +32329,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -40530,20 +32343,6 @@ ], "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}" }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "override", - "mappings", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -40555,13 +32354,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -40579,36 +32379,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "override", - "mappings", - "hideInAnswer", - "and" - ], - "required": false, - "hints": {}, - "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", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -40621,13 +32392,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -40645,37 +32417,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "override", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single 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", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -40690,12 +32432,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -40703,20 +32443,6 @@ ], "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`" }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "override", - "mappings", - "ifnot" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -40728,13 +32454,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -40752,36 +32479,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "override", - "mappings", - "ifnot", - "and" - ], - "required": false, - "hints": {}, - "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", - "ifnot" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -40794,13 +32492,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -40818,37 +32517,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "override", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single 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", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -40877,12 +32546,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -40890,20 +32557,6 @@ ], "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly" }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "override", - "mappings", - "priorityIf" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -40915,13 +32568,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -40939,36 +32593,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "override", - "mappings", - "priorityIf", - "and" - ], - "required": false, - "hints": {}, - "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", - "priorityIf" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -40981,13 +32606,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -41005,37 +32631,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "override", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single 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", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -41180,12 +32776,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -41193,19 +32787,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "override", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -41216,13 +32797,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -41240,34 +32822,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "override", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -41279,13 +32834,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -41303,35 +32859,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "override", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "override", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -41345,12 +32873,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -41358,19 +32884,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "override", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -41381,13 +32894,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -41405,34 +32919,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "override", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -41444,13 +32931,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -41468,35 +32956,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "override", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "tagRenderings", - "renderings", - "override", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -41565,33 +33025,21 @@ "osmTags" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "filter", - "options", - "osmTags" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -41602,13 +33050,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -41626,32 +33075,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "filter", - "options", - "osmTags", - "and" - ], - "required": false, - "hints": {}, - "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", - "filter", - "options", - "osmTags" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -41662,13 +33086,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -41686,33 +33111,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "filter", - "options", - "osmTags", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "filter", - "options", - "osmTags", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -41809,14 +33208,15 @@ "nonDeleteMappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -41834,31 +33234,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "deletion", - "nonDeleteMappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "deletion", - "nonDeleteMappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -41881,12 +33257,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -41894,17 +33268,6 @@ ], "description": "In some cases, the contributor is not allowed to delete the current feature (e.g. because it isn't a point, the point is referenced by a relation or the user isn't experienced enough).\nTo still offer the user a 'delete'-option, the feature is retagged with these tags. This is a soft deletion, as the point isn't actually removed from OSM but rather marked as 'disused'\nIt is important that the feature will be retagged in such a way that it won't be picked up by the layer anymore!\n\nExample (note that \"amenity=\" erases the 'amenity'-key alltogether):\n```\n{\n \"and\": [\"disussed:amenity=public_bookcase\", \"amenity=\"]\n}\n```\n\nor (notice the use of the ':='-tag to copy the old value of 'shop=*' into 'disused:shop='):\n```\n{\n \"and\": [\"disused:shop:={shop}\", \"shop=\"]\n}\n```" }, - { - "path": [ - "layers", - "deletion", - "softDeletionTags" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -41913,13 +33276,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -41937,30 +33301,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "deletion", - "softDeletionTags", - "and" - ], - "required": false, - "hints": {}, - "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", - "deletion", - "softDeletionTags" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -41970,13 +33311,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -41994,31 +33336,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "deletion", - "softDeletionTags", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "deletion", - "softDeletionTags", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -42101,9 +33419,11 @@ "units" ], "required": false, - "hints": {}, + "hints": { + "default": "ult: true," + }, "type": "object", - "description": "In some cases, a value is represented in a certain unit (such as meters for heigt/distance/..., km/h for speed, ...)\n\nSometimes, multiple denominations are possible (e.g. km/h vs mile/h; megawatt vs kilowatt vs gigawatt for power generators, ...)\n\nThis brings in some troubles, as there are multiple ways to write it (no denomitation, 'm' vs 'meter' 'metre', ...)\n\nNot only do we want to write consistent data to OSM, we also want to present this consistently to the user.\nThis is handled by defining units.\n\n# Rendering\n\nTo render a value with long (human) denomination, use {canonical(key)}\n\n# Usage\n\nFirst of all, you define which keys have units applied, for example:\n\n```\nunits: [\n appliesTo: [\"maxspeed\", \"maxspeed:hgv\", \"maxspeed:bus\"]\n applicableUnits: [\n ...\n ]\n]\n```\n\nApplicableUnits defines which is the canonical extension, how it is presented to the user, ...:\n\n```\napplicableUnits: [\n{\n canonicalDenomination: \"km/h\",\n alternativeDenomination: [\"km/u\", \"kmh\", \"kph\"]\n default: true,\n human: {\n en: \"kilometer/hour\",\n nl: \"kilometer/uur\"\n },\n humanShort: {\n en: \"km/h\",\n nl: \"km/u\"\n }\n},\n{\n canoncialDenomination: \"mph\",\n ... similar for miles an hour ...\n}\n]\n```\n\n\nIf this is defined, then every key which the denominations apply to (`maxspeed`, `maxspeed:hgv` and `maxspeed:bus`) will be rewritten at the metatagging stage:\nevery value will be parsed and the canonical extension will be added add presented to the other parts of the code.\n\nAlso, if a freeform text field is used, an extra dropdown with applicable denominations will be given" + "description": "In some cases, a value is represented in a certain unit (such as meters for heigt/distance/..., km/h for speed, ...)\n\nSometimes, multiple denominations are possible (e.g. km/h vs mile/h; megawatt vs kilowatt vs gigawatt for power generators, ...)\n\nThis brings in some troubles, as there are multiple ways to write it (no denomitation, 'm' vs 'meter' 'metre', ...)\n\nNot only do we want to write consistent data to OSM, we also want to present this consistently to the user.\nThis is handled by defining units.\n\n# Rendering\n\nTo render a value with long (human) denomination, use {canonical(key)}\n\n# Usage\n\nFirst of all, you define which keys have units applied, for example:\n\n```\nunits: [\n appliesTo: [\"maxspeed\", \"maxspeed:hgv\", \"maxspeed:bus\"]\n applicableUnits: [\n ...\n ]\n]\n```\n\nApplicableUnits defines which is the canonical extension, how it is presented to the user, ...:\n\n```\napplicableUnits: [\n{\n canonicalDenomination: \"km/h\",\n alternativeDenomination: [\"km/u\", \"kmh\", \"kph\"]\n human: {\n en: \"kilometer/hour\",\n nl: \"kilometer/uur\"\n },\n humanShort: {\n en: \"km/h\",\n nl: \"km/u\"\n }\n},\n{\n canoncialDenomination: \"mph\",\n ... similar for miles an hour ...\n}\n]\n```\n\n\nIf this is defined, then every key which the denominations apply to (`maxspeed`, `maxspeed:hgv` and `maxspeed:bus`) will be rewritten at the metatagging stage:\nevery value will be parsed and the canonical extension will be added add presented to the other parts of the code.\n\nAlso, if a freeform text field is used, an extra dropdown with applicable denominations will be given" }, { "path": [ @@ -42369,17 +33689,21 @@ "source" ], "required": false, - "hints": {}, + "hints": { + "types": "Load data with specific tags from OpenStreetMap ; Load data from an external geojson source ;", + "group": "basic", + "question": "Where should the data be fetched from?" + }, "type": [ { "type": "object", "properties": { "osmTags": { "$ref": "#/definitions/TagConfigJson", - "description": "Every source must set which tags have to be present in order to load the given layer." + "description": "question: Which tags must be present on the feature to show it in this layer?\nEvery source must set which tags have to be present in order to load the given layer." }, "maxCacheAge": { - "description": "The maximum amount of seconds that a tile is allowed to linger in the cache", + "description": "question: How long (in seconds) is the data allowed to remain cached until it must be refreshed?\nThe maximum amount of seconds that a tile is allowed to linger in the cache\n\ntype: nat", "type": "number" } }, @@ -42423,7 +33747,7 @@ "type": "string" } ], - "description": "This determines where the data for the layer is fetched: from OSM or from an external geojson dataset.\n\nIf no 'geojson' is defined, data will be fetched from overpass and the OSM-API.\n\nEvery source _must_ define which tags _must_ be present in order to be picked up.\n\nNote: a source must always be defined. 'special' is only allowed if this is a builtin-layer" + "description": "\nThis determines where the data for the layer is fetched: from OSM or from an external geojson dataset.\n\nIf no 'geojson' is defined, data will be fetched from overpass and the OSM-API.\n\nEvery source _must_ define which tags _must_ be present in order to be picked up.\n\nNote: a source must always be defined. 'special' is only allowed if this is a builtin-layer\n" }, { "path": [ @@ -42432,14 +33756,15 @@ "source", "osmTags" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -42457,31 +33782,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "source", - "osmTags" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "source", - "osmTags" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -42491,9 +33792,12 @@ "maxCacheAge" ], "required": false, - "hints": {}, + "hints": { + "typehint": "nat", + "question": "How long (in seconds) is the data allowed to remain cached until it must be refreshed?" + }, "type": "number", - "description": "The maximum amount of seconds that a tile is allowed to linger in the cache" + "description": "The maximum amount of seconds that a tile is allowed to linger in the cache\n" }, { "path": [ @@ -42593,12 +33897,10 @@ }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -42606,17 +33908,6 @@ ], "description": "If set, only features matching this extra tag will be shown.\nThis is useful to hide certain features from view.\n\nThe default value is 'yes'\n" }, - { - "path": [ - "layers", - "override", - "isShown" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -42625,13 +33916,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -42649,30 +33941,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "isShown", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "isShown" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -42682,13 +33951,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -42706,31 +33976,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "isShown", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "isShown", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -42753,12 +33999,14 @@ ], "required": false, "hints": { + "typehint": "nat", "group": "basic", + "default": "0", "question": "At what zoom level should features of the layer be shown?", "ifunset": "Always load this layer, even if the entire world is in view." }, "type": "number", - "description": "The minimum needed zoomlevel required to start loading and displaying the data.\nThis can be used to only show common features (e.g. a bicycle parking) only when the map is zoomed in very much (17).\nThis prevents cluttering the map with thousands of parkings if one is looking to an entire city.\n\nDefault: 0\n" + "description": "The minimum needed zoomlevel required to start loading and displaying the data.\nThis can be used to only show common features (e.g. a bicycle parking) only when the map is zoomed in very much (17).\nThis prevents cluttering the map with thousands of parkings if one is looking to an entire city.\n" }, { "path": [ @@ -42781,10 +34029,11 @@ ], "required": false, "hints": { - "group": "advanced" + "group": "advanced", + "default": "100 (thus: always visible" }, "type": "number", - "description": "The zoom level at which point the data is hidden again\nDefault: 100 (thus: always visible\n" + "description": "The zoom level at which point the data is hidden again\n" }, { "path": [ @@ -42940,12 +34189,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -42953,18 +34200,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "title", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -42974,13 +34209,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -42998,32 +34234,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "title", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "title", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -43034,13 +34245,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -43058,33 +34270,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "title", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "title", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -43097,12 +34283,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -43110,18 +34294,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "title", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -43131,13 +34303,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -43155,32 +34328,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "title", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "title", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -43191,13 +34339,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -43215,33 +34364,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "title", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "title", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -43288,14 +34411,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -43313,33 +34437,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "title", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "title", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -43603,12 +34701,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -43616,18 +34712,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "titleIcons", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -43637,13 +34721,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -43661,32 +34746,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "titleIcons", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "titleIcons", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -43697,13 +34757,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -43721,33 +34782,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "titleIcons", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "titleIcons", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -43760,12 +34795,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -43773,18 +34806,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "titleIcons", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -43794,13 +34815,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -43818,32 +34840,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "titleIcons", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "titleIcons", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -43854,13 +34851,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -43878,33 +34876,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "titleIcons", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "titleIcons", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -43951,14 +34923,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -43976,33 +34949,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "titleIcons", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "titleIcons", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -44309,12 +35256,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -44322,19 +35267,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "icon", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -44345,13 +35277,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -44369,34 +35302,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "icon", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "icon", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -44408,13 +35314,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -44432,35 +35339,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "icon", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "icon", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -44474,12 +35353,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -44487,19 +35364,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "icon", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -44510,13 +35374,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -44534,34 +35399,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "icon", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "icon", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -44573,13 +35411,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -44597,35 +35436,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "icon", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "icon", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -44676,14 +35487,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -44701,35 +35513,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "icon", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "icon", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -44842,14 +35626,15 @@ "iconBadges", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -44867,33 +35652,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconBadges", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconBadges", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -45065,12 +35824,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -45078,20 +35835,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconBadges", - "then", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -45103,13 +35846,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -45127,36 +35871,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconBadges", - "then", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "iconBadges", - "then", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -45169,13 +35884,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -45193,37 +35909,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconBadges", - "then", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconBadges", - "then", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -45238,12 +35924,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -45251,20 +35935,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconBadges", - "then", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -45276,13 +35946,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -45300,36 +35971,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconBadges", - "then", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "iconBadges", - "then", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -45342,13 +35984,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -45366,37 +36009,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconBadges", - "then", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconBadges", - "then", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -45451,14 +36064,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -45476,37 +36090,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconBadges", - "then", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconBadges", - "then", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -45763,12 +36347,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -45776,19 +36358,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconSize", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -45799,13 +36368,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -45823,34 +36393,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconSize", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "iconSize", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -45862,13 +36405,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -45886,35 +36430,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconSize", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconSize", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -45928,12 +36444,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -45941,19 +36455,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconSize", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -45964,13 +36465,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -45988,34 +36490,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconSize", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "iconSize", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -46027,13 +36502,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -46051,35 +36527,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconSize", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconSize", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -46130,14 +36578,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -46155,35 +36604,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconSize", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "iconSize", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -46276,6 +36697,518 @@ "type": "string", "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)" }, + { + "path": [ + "layers", + "override", + "mapRendering", + "anchor" + ], + "required": false, + "hints": { + "question": "What is the anchorpoint of the icon?" + }, + "type": [ + { + "$ref": "#/definitions/TagRenderingConfigJson" + }, + { + "type": "string" + } + ], + "description": "\nThis matches the geographical point with a location on the icon.\nFor example, a feature attached to the ground can use 'bottom' as zooming in will give the appearance of being anchored to a fixed location." + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "anchor" + ], + "required": false, + "hints": {}, + "type": "object", + "description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "anchor", + "id" + ], + "required": false, + "hints": {}, + "type": "string", + "description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "anchor", + "labels" + ], + "required": false, + "hints": {}, + "type": "array", + "description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "anchor", + "classes" + ], + "required": false, + "hints": {}, + "type": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "description": "A list of css-classes to apply to the entire tagRendering if the answer is known (not applied on the question).\nThis is only for advanced users" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "anchor", + "description" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "A human-readable text explaining what this tagRendering does.\nMostly used for the shared tagrenderings" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "anchor", + "render" + ], + "required": false, + "hints": { + "typehint": "rendered" + }, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "object", + "properties": { + "special": { + "allOf": [ + { + "$ref": "#/definitions/Record>" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string" + } + }, + "required": [ + "type" + ] + } + ] + } + }, + "required": [ + "special" + ] + }, + { + "type": "string" + } + ], + "description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '{website}' or include images such as `This is of type A
`" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "anchor", + "condition" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "$ref": "#/definitions/{or:TagConfigJson[];}" + }, + { + "type": "string" + } + ], + "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "anchor", + "condition", + "and" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "anchor", + "condition", + "or" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "anchor", + "metacondition" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "$ref": "#/definitions/{or:TagConfigJson[];}" + }, + { + "type": "string" + } + ], + "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "anchor", + "metacondition", + "and" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "anchor", + "metacondition", + "or" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "anchor", + "freeform" + ], + "required": false, + "hints": {}, + "type": "object", + "description": "Allow freeform text input from the user" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "anchor", + "freeform", + "key" + ], + "required": true, + "hints": {}, + "type": "string", + "description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "anchor", + "mappings" + ], + "required": false, + "hints": {}, + "type": "array", + "description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "anchor", + "mappings", + "if" + ], + "required": true, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "anchor", + "mappings", + "then" + ], + "required": true, + "hints": { + "typehint": "rendered" + }, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "If the condition `if` is met, the text `then` will be rendered.\nIf not known yet, the user will be presented with `then` as an option" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "anchor", + "mappings", + "icon" + ], + "required": false, + "hints": { + "typehint": "icon" + }, + "type": [ + { + "type": "object", + "properties": { + "path": { + "description": "The path to the icon\nType: icon", + "type": "string" + }, + "class": { + "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)", + "type": "string" + } + }, + "required": [ + "path" + ] + }, + { + "type": "string" + } + ], + "description": "An icon supporting this mapping; typically shown pretty small" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "anchor", + "mappings", + "icon", + "path" + ], + "required": true, + "hints": { + "typehint": "icon" + }, + "type": "string", + "description": "The path to the icon" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "anchor", + "mappings", + "icon", + "class" + ], + "required": false, + "hints": {}, + "type": "string", + "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)" + }, { "path": [ "layers", @@ -46436,12 +37369,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -46449,19 +37380,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "rotation", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -46472,13 +37390,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -46496,34 +37415,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "rotation", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "rotation", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -46535,13 +37427,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -46559,35 +37452,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "rotation", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "rotation", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -46601,12 +37466,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -46614,19 +37477,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "rotation", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -46637,13 +37487,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -46661,34 +37512,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "rotation", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "rotation", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -46700,13 +37524,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -46724,35 +37549,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "rotation", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "rotation", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -46803,14 +37600,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -46828,35 +37626,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "rotation", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "rotation", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -47109,12 +37879,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -47122,19 +37890,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "label", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -47145,13 +37900,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -47169,34 +37925,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "label", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "label", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -47208,13 +37937,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -47232,35 +37962,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "label", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "label", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -47274,12 +37976,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -47287,19 +37987,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "label", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -47310,13 +37997,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -47334,34 +38022,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "label", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "label", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -47373,13 +38034,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -47397,35 +38059,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "label", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "label", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -47476,14 +38110,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -47501,35 +38136,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "label", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "label", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -47782,12 +38389,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -47795,19 +38400,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "css", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -47818,13 +38410,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -47842,34 +38435,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "css", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "css", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -47881,13 +38447,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -47905,35 +38472,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "css", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "css", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -47947,12 +38486,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -47960,19 +38497,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "css", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -47983,13 +38507,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -48007,34 +38532,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "css", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "css", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -48046,13 +38544,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -48070,35 +38569,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "css", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "css", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -48149,14 +38620,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -48174,35 +38646,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "css", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "css", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -48455,12 +38899,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -48468,19 +38910,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "cssClasses", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -48491,13 +38920,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -48515,34 +38945,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "cssClasses", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "cssClasses", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -48554,13 +38957,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -48578,35 +38982,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "cssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "cssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -48620,12 +38996,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -48633,19 +39007,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "cssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -48656,13 +39017,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -48680,34 +39042,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "cssClasses", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "cssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -48719,13 +39054,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -48743,35 +39079,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "cssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "cssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -48822,14 +39130,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -48847,35 +39156,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "cssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "cssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -49128,12 +39409,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -49141,19 +39420,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "labelCss", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -49164,13 +39430,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -49188,34 +39455,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "labelCss", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "labelCss", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -49227,13 +39467,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -49251,35 +39492,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "labelCss", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "labelCss", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -49293,12 +39506,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -49306,19 +39517,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "labelCss", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -49329,13 +39527,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -49353,34 +39552,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "labelCss", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "labelCss", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -49392,13 +39564,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -49416,35 +39589,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "labelCss", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "labelCss", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -49495,14 +39640,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -49520,35 +39666,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "labelCss", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "labelCss", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -49801,12 +39919,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -49814,19 +39930,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "labelCssClasses", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -49837,13 +39940,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -49861,34 +39965,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "labelCssClasses", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "labelCssClasses", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -49900,13 +39977,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -49924,35 +40002,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "labelCssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "labelCssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -49966,12 +40016,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -49979,19 +40027,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "labelCssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -50002,13 +40037,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -50026,34 +40062,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "labelCssClasses", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "labelCssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -50065,13 +40074,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -50089,35 +40099,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "labelCssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "labelCssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -50168,14 +40150,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -50193,35 +40176,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "labelCssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "labelCssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -50478,12 +40433,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -50491,19 +40444,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "pitchAlignment", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -50514,13 +40454,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -50538,34 +40479,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "pitchAlignment", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "pitchAlignment", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -50577,13 +40491,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -50601,35 +40516,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "pitchAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "pitchAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -50643,12 +40530,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -50656,19 +40541,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "pitchAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -50679,13 +40551,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -50703,34 +40576,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "pitchAlignment", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "pitchAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -50742,13 +40588,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -50766,35 +40613,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "pitchAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "pitchAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -50845,14 +40664,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -50870,35 +40690,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "pitchAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "pitchAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -51155,12 +40947,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -51168,19 +40958,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "rotationAlignment", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -51191,13 +40968,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -51215,34 +40993,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "rotationAlignment", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "rotationAlignment", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -51254,13 +41005,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -51278,35 +41030,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "rotationAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "rotationAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -51320,12 +41044,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -51333,19 +41055,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "rotationAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -51356,13 +41065,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -51380,34 +41090,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "rotationAlignment", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "rotationAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -51419,13 +41102,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -51443,35 +41127,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "rotationAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "rotationAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -51522,14 +41178,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -51547,35 +41204,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "rotationAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "rotationAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -51839,12 +41468,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -51852,19 +41479,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "color", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -51875,13 +41489,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -51899,34 +41514,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "color", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "color", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -51938,13 +41526,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -51962,35 +41551,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "color", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "color", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -52004,12 +41565,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -52017,19 +41576,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "color", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -52040,13 +41586,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -52064,34 +41611,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "color", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "color", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -52103,13 +41623,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -52127,35 +41648,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "color", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "color", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -52206,14 +41699,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -52231,35 +41725,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "color", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "color", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -52515,12 +41981,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -52528,19 +41992,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "width", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -52551,13 +42002,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -52575,34 +42027,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "width", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "width", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -52614,13 +42039,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -52638,35 +42064,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "width", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "width", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -52680,12 +42078,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -52693,19 +42089,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "width", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -52716,13 +42099,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -52740,34 +42124,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "width", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "width", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -52779,13 +42136,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -52803,35 +42161,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "width", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "width", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -52882,14 +42212,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -52907,35 +42238,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "width", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "width", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -53188,12 +42491,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -53201,19 +42502,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "dashArray", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -53224,13 +42512,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -53248,34 +42537,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "dashArray", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "dashArray", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -53287,13 +42549,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -53311,35 +42574,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "dashArray", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "dashArray", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -53353,12 +42588,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -53366,19 +42599,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "dashArray", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -53389,13 +42609,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -53413,34 +42634,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "dashArray", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "dashArray", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -53452,13 +42646,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -53476,35 +42671,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "dashArray", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "dashArray", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -53555,14 +42722,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -53580,35 +42748,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "dashArray", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "dashArray", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -53861,12 +43001,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -53874,19 +43012,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "lineCap", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -53897,13 +43022,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -53921,34 +43047,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "lineCap", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "lineCap", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -53960,13 +43059,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -53984,35 +43084,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "lineCap", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "lineCap", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -54026,12 +43098,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -54039,19 +43109,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "lineCap", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -54062,13 +43119,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -54086,34 +43144,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "lineCap", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "lineCap", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -54125,13 +43156,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -54149,35 +43181,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "lineCap", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "lineCap", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -54228,14 +43232,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -54253,35 +43258,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "lineCap", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "lineCap", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -54534,12 +43511,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -54547,19 +43522,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "fillColor", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -54570,13 +43532,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -54594,34 +43557,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "fillColor", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "fillColor", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -54633,13 +43569,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -54657,35 +43594,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "fillColor", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "fillColor", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -54699,12 +43608,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -54712,19 +43619,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "fillColor", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -54735,13 +43629,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -54759,34 +43654,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "fillColor", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "fillColor", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -54798,13 +43666,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -54822,35 +43691,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "fillColor", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "fillColor", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -54901,14 +43742,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -54926,35 +43768,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "fillColor", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "fillColor", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -55207,12 +44021,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -55220,19 +44032,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "offset", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -55243,13 +44042,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -55267,34 +44067,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "offset", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "offset", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -55306,13 +44079,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -55330,35 +44104,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "offset", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "offset", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -55372,12 +44118,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -55385,19 +44129,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "offset", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -55408,13 +44139,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -55432,34 +44164,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "offset", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "offset", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -55471,13 +44176,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -55495,35 +44201,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "offset", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "offset", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -55574,14 +44252,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -55599,35 +44278,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "offset", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "offset", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -55926,12 +44577,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -55939,20 +44588,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "icon", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -55964,13 +44599,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -55988,36 +44624,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "icon", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "icon", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -56030,13 +44637,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -56054,37 +44662,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "icon", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "icon", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -56099,12 +44677,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -56112,20 +44688,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "icon", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -56137,13 +44699,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -56161,36 +44724,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "icon", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "icon", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -56203,13 +44737,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -56227,37 +44762,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "icon", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "icon", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -56312,14 +44817,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -56337,37 +44843,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "icon", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "icon", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -56486,14 +44962,15 @@ "iconBadges", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -56511,35 +44988,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -56719,12 +45168,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -56732,21 +45179,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -56759,13 +45191,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -56783,38 +45216,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -56828,13 +45230,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -56852,39 +45255,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -56900,12 +45271,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -56913,21 +45282,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -56940,13 +45294,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -56964,38 +45319,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -57009,13 +45333,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -57033,39 +45358,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -57124,14 +45417,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -57149,39 +45443,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -57450,12 +45712,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -57463,20 +45723,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconSize", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -57488,13 +45734,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -57512,36 +45759,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconSize", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "iconSize", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -57554,13 +45772,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -57578,37 +45797,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconSize", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconSize", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -57623,12 +45812,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -57636,20 +45823,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconSize", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -57661,13 +45834,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -57685,36 +45859,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconSize", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "iconSize", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -57727,13 +45872,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -57751,37 +45897,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconSize", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconSize", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -57836,14 +45952,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -57861,37 +45978,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconSize", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconSize", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -57988,6 +46075,539 @@ "type": "string", "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)" }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor" + ], + "required": false, + "hints": { + "question": "What is the anchorpoint of the icon?" + }, + "type": [ + { + "$ref": "#/definitions/TagRenderingConfigJson" + }, + { + "type": "string" + } + ], + "description": "\nThis matches the geographical point with a location on the icon.\nFor example, a feature attached to the ground can use 'bottom' as zooming in will give the appearance of being anchored to a fixed location." + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor" + ], + "required": false, + "hints": {}, + "type": "object", + "description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "id" + ], + "required": false, + "hints": {}, + "type": "string", + "description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "labels" + ], + "required": false, + "hints": {}, + "type": "array", + "description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "classes" + ], + "required": false, + "hints": {}, + "type": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "description": "A list of css-classes to apply to the entire tagRendering if the answer is known (not applied on the question).\nThis is only for advanced users" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "description" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "A human-readable text explaining what this tagRendering does.\nMostly used for the shared tagrenderings" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "render" + ], + "required": false, + "hints": { + "typehint": "rendered" + }, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "object", + "properties": { + "special": { + "allOf": [ + { + "$ref": "#/definitions/Record>" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string" + } + }, + "required": [ + "type" + ] + } + ] + } + }, + "required": [ + "special" + ] + }, + { + "type": "string" + } + ], + "description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '{website}' or include images such as `This is of type A
`" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "condition" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "$ref": "#/definitions/{or:TagConfigJson[];}" + }, + { + "type": "string" + } + ], + "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "condition", + "and" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "condition", + "or" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "metacondition" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "$ref": "#/definitions/{or:TagConfigJson[];}" + }, + { + "type": "string" + } + ], + "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "metacondition", + "and" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "metacondition", + "or" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "freeform" + ], + "required": false, + "hints": {}, + "type": "object", + "description": "Allow freeform text input from the user" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "freeform", + "key" + ], + "required": true, + "hints": {}, + "type": "string", + "description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "mappings" + ], + "required": false, + "hints": {}, + "type": "array", + "description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "mappings", + "if" + ], + "required": true, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "mappings", + "then" + ], + "required": true, + "hints": { + "typehint": "rendered" + }, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "If the condition `if` is met, the text `then` will be rendered.\nIf not known yet, the user will be presented with `then` as an option" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "mappings", + "icon" + ], + "required": false, + "hints": { + "typehint": "icon" + }, + "type": [ + { + "type": "object", + "properties": { + "path": { + "description": "The path to the icon\nType: icon", + "type": "string" + }, + "class": { + "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)", + "type": "string" + } + }, + "required": [ + "path" + ] + }, + { + "type": "string" + } + ], + "description": "An icon supporting this mapping; typically shown pretty small" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "mappings", + "icon", + "path" + ], + "required": true, + "hints": { + "typehint": "icon" + }, + "type": "string", + "description": "The path to the icon" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "mappings", + "icon", + "class" + ], + "required": false, + "hints": {}, + "type": "string", + "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)" + }, { "path": [ "layers", @@ -58156,12 +46776,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -58169,20 +46787,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotation", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -58194,13 +46798,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -58218,36 +46823,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotation", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "rotation", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -58260,13 +46836,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -58284,37 +46861,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotation", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotation", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -58329,12 +46876,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -58342,20 +46887,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotation", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -58367,13 +46898,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -58391,36 +46923,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotation", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "rotation", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -58433,13 +46936,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -58457,37 +46961,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotation", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotation", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -58542,14 +47016,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -58567,37 +47042,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotation", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotation", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -58862,12 +47307,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -58875,20 +47318,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "label", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -58900,13 +47329,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -58924,36 +47354,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "label", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "label", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -58966,13 +47367,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -58990,37 +47392,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "label", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "label", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -59035,12 +47407,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -59048,20 +47418,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "label", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -59073,13 +47429,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -59097,36 +47454,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "label", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "label", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -59139,13 +47467,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -59163,37 +47492,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "label", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "label", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -59248,14 +47547,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -59273,37 +47573,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "label", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "label", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -59568,12 +47838,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -59581,20 +47849,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "css", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -59606,13 +47860,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -59630,36 +47885,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "css", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "css", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -59672,13 +47898,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -59696,37 +47923,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "css", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "css", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -59741,12 +47938,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -59754,20 +47949,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "css", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -59779,13 +47960,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -59803,36 +47985,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "css", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "css", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -59845,13 +47998,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -59869,37 +48023,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "css", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "css", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -59954,14 +48078,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -59979,37 +48104,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "css", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "css", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -60274,12 +48369,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -60287,20 +48380,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "cssClasses", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -60312,13 +48391,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -60336,36 +48416,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "cssClasses", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "cssClasses", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -60378,13 +48429,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -60402,37 +48454,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "cssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "cssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -60447,12 +48469,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -60460,20 +48480,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "cssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -60485,13 +48491,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -60509,36 +48516,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "cssClasses", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "cssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -60551,13 +48529,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -60575,37 +48554,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "cssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "cssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -60660,14 +48609,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -60685,37 +48635,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "cssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "cssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -60980,12 +48900,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -60993,20 +48911,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCss", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -61018,13 +48922,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -61042,36 +48947,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCss", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "labelCss", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -61084,13 +48960,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -61108,37 +48985,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCss", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCss", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -61153,12 +49000,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -61166,20 +49011,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCss", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -61191,13 +49022,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -61215,36 +49047,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCss", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "labelCss", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -61257,13 +49060,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -61281,37 +49085,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCss", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCss", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -61366,14 +49140,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -61391,37 +49166,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCss", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCss", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -61686,12 +49431,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -61699,20 +49442,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -61724,13 +49453,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -61748,36 +49478,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -61790,13 +49491,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -61814,37 +49516,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -61859,12 +49531,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -61872,20 +49542,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -61897,13 +49553,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -61921,36 +49578,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -61963,13 +49591,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -61987,37 +49616,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -62072,14 +49671,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -62097,37 +49697,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -62396,12 +49966,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -62409,20 +49977,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -62434,13 +49988,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -62458,36 +50013,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -62500,13 +50026,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -62524,37 +50051,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -62569,12 +50066,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -62582,20 +50077,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -62607,13 +50088,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -62631,36 +50113,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -62673,13 +50126,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -62697,37 +50151,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -62782,14 +50206,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -62807,37 +50232,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -63106,12 +50501,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -63119,20 +50512,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -63144,13 +50523,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -63168,36 +50548,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -63210,13 +50561,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -63234,37 +50586,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -63279,12 +50601,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -63292,20 +50612,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -63317,13 +50623,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -63341,36 +50648,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -63383,13 +50661,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -63407,37 +50686,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -63492,14 +50741,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -63517,37 +50767,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -63824,12 +51044,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -63837,20 +51055,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "color", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -63862,13 +51066,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -63886,36 +51091,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "color", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "color", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -63928,13 +51104,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -63952,37 +51129,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "color", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "color", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -63997,12 +51144,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -64010,20 +51155,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "color", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -64035,13 +51166,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -64059,36 +51191,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "color", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "color", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -64101,13 +51204,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -64125,37 +51229,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "color", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "color", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -64210,14 +51284,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -64235,37 +51310,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "color", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "color", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -64533,12 +51578,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -64546,20 +51589,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "width", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -64571,13 +51600,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -64595,36 +51625,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "width", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "width", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -64637,13 +51638,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -64661,37 +51663,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "width", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "width", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -64706,12 +51678,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -64719,20 +51689,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "width", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -64744,13 +51700,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -64768,36 +51725,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "width", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "width", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -64810,13 +51738,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -64834,37 +51763,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "width", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "width", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -64919,14 +51818,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -64944,37 +51844,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "width", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "width", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -65239,12 +52109,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -65252,20 +52120,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "dashArray", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -65277,13 +52131,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -65301,36 +52156,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "dashArray", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "dashArray", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -65343,13 +52169,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -65367,37 +52194,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "dashArray", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "dashArray", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -65412,12 +52209,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -65425,20 +52220,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "dashArray", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -65450,13 +52231,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -65474,36 +52256,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "dashArray", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "dashArray", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -65516,13 +52269,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -65540,37 +52294,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "dashArray", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "dashArray", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -65625,14 +52349,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -65650,37 +52375,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "dashArray", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "dashArray", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -65945,12 +52640,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -65958,20 +52651,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "lineCap", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -65983,13 +52662,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -66007,36 +52687,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "lineCap", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "lineCap", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -66049,13 +52700,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -66073,37 +52725,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "lineCap", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "lineCap", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -66118,12 +52740,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -66131,20 +52751,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "lineCap", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -66156,13 +52762,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -66180,36 +52787,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "lineCap", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "lineCap", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -66222,13 +52800,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -66246,37 +52825,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "lineCap", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "lineCap", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -66331,14 +52880,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -66356,37 +52906,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "lineCap", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "lineCap", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -66651,12 +53171,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -66664,20 +53182,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "fillColor", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -66689,13 +53193,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -66713,36 +53218,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "fillColor", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "fillColor", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -66755,13 +53231,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -66779,37 +53256,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "fillColor", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "fillColor", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -66824,12 +53271,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -66837,20 +53282,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "fillColor", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -66862,13 +53293,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -66886,36 +53318,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "fillColor", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "fillColor", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -66928,13 +53331,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -66952,37 +53356,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "fillColor", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "fillColor", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -67037,14 +53411,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -67062,37 +53437,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "fillColor", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "fillColor", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -67357,12 +53702,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -67370,20 +53713,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "offset", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -67395,13 +53724,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -67419,36 +53749,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "offset", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "offset", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -67461,13 +53762,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -67485,37 +53787,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "offset", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "offset", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -67530,12 +53802,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -67543,20 +53813,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "offset", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -67568,13 +53824,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -67592,36 +53849,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "offset", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "offset", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -67634,13 +53862,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -67658,37 +53887,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "offset", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "offset", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -67743,14 +53942,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -67768,37 +53968,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "offset", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "offset", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -68075,12 +54245,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -68088,20 +54256,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "color", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -68113,13 +54267,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -68137,36 +54292,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "color", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "color", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -68179,13 +54305,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -68203,37 +54330,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "color", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "color", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -68248,12 +54345,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -68261,20 +54356,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "color", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -68286,13 +54367,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -68310,36 +54392,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "color", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "color", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -68352,13 +54405,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -68376,37 +54430,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "color", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "color", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -68461,14 +54485,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -68486,37 +54511,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "color", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "color", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -68784,12 +54779,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -68797,20 +54790,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "width", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -68822,13 +54801,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -68846,36 +54826,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "width", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "width", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -68888,13 +54839,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -68912,37 +54864,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "width", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "width", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -68957,12 +54879,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -68970,20 +54890,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "width", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -68995,13 +54901,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -69019,36 +54926,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "width", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "width", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -69061,13 +54939,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -69085,37 +54964,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "width", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "width", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -69170,14 +55019,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -69195,37 +55045,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "width", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "width", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -69490,12 +55310,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -69503,20 +55321,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "dashArray", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -69528,13 +55332,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -69552,36 +55357,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "dashArray", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "dashArray", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -69594,13 +55370,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -69618,37 +55395,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "dashArray", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "dashArray", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -69663,12 +55410,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -69676,20 +55421,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "dashArray", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -69701,13 +55432,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -69725,36 +55457,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "dashArray", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "dashArray", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -69767,13 +55470,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -69791,37 +55495,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "dashArray", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "dashArray", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -69876,14 +55550,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -69901,37 +55576,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "dashArray", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "dashArray", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -70196,12 +55841,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -70209,20 +55852,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "lineCap", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -70234,13 +55863,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -70258,36 +55888,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "lineCap", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "lineCap", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -70300,13 +55901,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -70324,37 +55926,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "lineCap", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "lineCap", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -70369,12 +55941,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -70382,20 +55952,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "lineCap", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -70407,13 +55963,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -70431,36 +55988,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "lineCap", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "lineCap", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -70473,13 +56001,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -70497,37 +56026,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "lineCap", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "lineCap", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -70582,14 +56081,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -70607,37 +56107,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "lineCap", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "lineCap", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -70902,12 +56372,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -70915,20 +56383,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "fillColor", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -70940,13 +56394,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -70964,36 +56419,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "fillColor", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "fillColor", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -71006,13 +56432,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -71030,37 +56457,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "fillColor", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "fillColor", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -71075,12 +56472,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -71088,20 +56483,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "fillColor", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -71113,13 +56494,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -71137,36 +56519,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "fillColor", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "fillColor", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -71179,13 +56532,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -71203,37 +56557,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "fillColor", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "fillColor", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -71288,14 +56612,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -71313,37 +56638,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "fillColor", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "fillColor", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -71608,12 +56903,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -71621,20 +56914,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "offset", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -71646,13 +56925,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -71670,36 +56950,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "offset", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "offset", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -71712,13 +56963,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -71736,37 +56988,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "offset", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "offset", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -71781,12 +57003,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -71794,20 +57014,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "offset", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -71819,13 +57025,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -71843,36 +57050,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "offset", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "offset", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -71885,13 +57063,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -71909,37 +57088,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "offset", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "offset", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -71994,14 +57143,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -72019,37 +57169,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "offset", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "offset", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -72341,12 +57461,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -72354,20 +57472,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "icon", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -72379,13 +57483,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -72403,36 +57508,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "icon", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "icon", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -72445,13 +57521,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -72469,37 +57546,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "icon", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "icon", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -72514,12 +57561,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -72527,20 +57572,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "icon", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -72552,13 +57583,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -72576,36 +57608,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "icon", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "icon", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -72618,13 +57621,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -72642,37 +57646,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "icon", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "icon", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -72727,14 +57701,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -72752,37 +57727,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "icon", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "icon", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -72901,14 +57846,15 @@ "iconBadges", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -72926,35 +57872,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -73134,12 +58052,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -73147,21 +58063,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -73174,13 +58075,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -73198,38 +58100,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -73243,13 +58114,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -73267,39 +58139,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -73315,12 +58155,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -73328,21 +58166,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -73355,13 +58178,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -73379,38 +58203,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -73424,13 +58217,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -73448,39 +58242,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -73539,14 +58301,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -73564,39 +58327,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconBadges", - "then", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -73865,12 +58596,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -73878,20 +58607,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconSize", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -73903,13 +58618,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -73927,36 +58643,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconSize", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "iconSize", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -73969,13 +58656,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -73993,37 +58681,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconSize", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconSize", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -74038,12 +58696,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -74051,20 +58707,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconSize", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -74076,13 +58718,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -74100,36 +58743,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconSize", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "iconSize", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -74142,13 +58756,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -74166,37 +58781,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconSize", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconSize", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -74251,14 +58836,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -74276,37 +58862,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconSize", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "iconSize", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -74403,6 +58959,539 @@ "type": "string", "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)" }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor" + ], + "required": false, + "hints": { + "question": "What is the anchorpoint of the icon?" + }, + "type": [ + { + "$ref": "#/definitions/TagRenderingConfigJson" + }, + { + "type": "string" + } + ], + "description": "\nThis matches the geographical point with a location on the icon.\nFor example, a feature attached to the ground can use 'bottom' as zooming in will give the appearance of being anchored to a fixed location." + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor" + ], + "required": false, + "hints": {}, + "type": "object", + "description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "id" + ], + "required": false, + "hints": {}, + "type": "string", + "description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "labels" + ], + "required": false, + "hints": {}, + "type": "array", + "description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "classes" + ], + "required": false, + "hints": {}, + "type": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "description": "A list of css-classes to apply to the entire tagRendering if the answer is known (not applied on the question).\nThis is only for advanced users" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "description" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "A human-readable text explaining what this tagRendering does.\nMostly used for the shared tagrenderings" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "render" + ], + "required": false, + "hints": { + "typehint": "rendered" + }, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "object", + "properties": { + "special": { + "allOf": [ + { + "$ref": "#/definitions/Record>" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string" + } + }, + "required": [ + "type" + ] + } + ] + } + }, + "required": [ + "special" + ] + }, + { + "type": "string" + } + ], + "description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '{website}' or include images such as `This is of type A
`" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "condition" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "$ref": "#/definitions/{or:TagConfigJson[];}" + }, + { + "type": "string" + } + ], + "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "condition", + "and" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "condition", + "or" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "metacondition" + ], + "required": false, + "hints": {}, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "$ref": "#/definitions/{or:TagConfigJson[];}" + }, + { + "type": "string" + } + ], + "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "metacondition", + "and" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "metacondition", + "or" + ], + "required": false, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "freeform" + ], + "required": false, + "hints": {}, + "type": "object", + "description": "Allow freeform text input from the user" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "freeform", + "key" + ], + "required": true, + "hints": {}, + "type": "string", + "description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "mappings" + ], + "required": false, + "hints": {}, + "type": "array", + "description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "mappings", + "if" + ], + "required": true, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "mappings", + "then" + ], + "required": true, + "hints": { + "typehint": "rendered" + }, + "type": [ + { + "$ref": "#/definitions/Record" + }, + { + "type": "string" + } + ], + "description": "If the condition `if` is met, the text `then` will be rendered.\nIf not known yet, the user will be presented with `then` as an option" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "mappings", + "icon" + ], + "required": false, + "hints": { + "typehint": "icon" + }, + "type": [ + { + "type": "object", + "properties": { + "path": { + "description": "The path to the icon\nType: icon", + "type": "string" + }, + "class": { + "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)", + "type": "string" + } + }, + "required": [ + "path" + ] + }, + { + "type": "string" + } + ], + "description": "An icon supporting this mapping; typically shown pretty small" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "mappings", + "icon", + "path" + ], + "required": true, + "hints": { + "typehint": "icon" + }, + "type": "string", + "description": "The path to the icon" + }, + { + "path": [ + "layers", + "override", + "mapRendering", + "renderings", + "anchor", + "mappings", + "icon", + "class" + ], + "required": false, + "hints": {}, + "type": "string", + "description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-', so defining your own in combination with a custom CSS is possible (but discouraged)" + }, { "path": [ "layers", @@ -74571,12 +59660,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -74584,20 +59671,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotation", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -74609,13 +59682,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -74633,36 +59707,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotation", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "rotation", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -74675,13 +59720,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -74699,37 +59745,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotation", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotation", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -74744,12 +59760,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -74757,20 +59771,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotation", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -74782,13 +59782,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -74806,36 +59807,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotation", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "rotation", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -74848,13 +59820,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -74872,37 +59845,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotation", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotation", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -74957,14 +59900,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -74982,37 +59926,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotation", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotation", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -75277,12 +60191,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -75290,20 +60202,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "label", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -75315,13 +60213,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -75339,36 +60238,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "label", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "label", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -75381,13 +60251,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -75405,37 +60276,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "label", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "label", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -75450,12 +60291,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -75463,20 +60302,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "label", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -75488,13 +60313,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -75512,36 +60338,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "label", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "label", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -75554,13 +60351,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -75578,37 +60376,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "label", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "label", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -75663,14 +60431,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -75688,37 +60457,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "label", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "label", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -75983,12 +60722,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -75996,20 +60733,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "css", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -76021,13 +60744,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -76045,36 +60769,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "css", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "css", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -76087,13 +60782,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -76111,37 +60807,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "css", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "css", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -76156,12 +60822,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -76169,20 +60833,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "css", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -76194,13 +60844,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -76218,36 +60869,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "css", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "css", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -76260,13 +60882,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -76284,37 +60907,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "css", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "css", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -76369,14 +60962,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -76394,37 +60988,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "css", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "css", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -76689,12 +61253,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -76702,20 +61264,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "cssClasses", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -76727,13 +61275,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -76751,36 +61300,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "cssClasses", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "cssClasses", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -76793,13 +61313,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -76817,37 +61338,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "cssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "cssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -76862,12 +61353,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -76875,20 +61364,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "cssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -76900,13 +61375,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -76924,36 +61400,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "cssClasses", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "cssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -76966,13 +61413,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -76990,37 +61438,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "cssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "cssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -77075,14 +61493,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -77100,37 +61519,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "cssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "cssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -77395,12 +61784,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -77408,20 +61795,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCss", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -77433,13 +61806,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -77457,36 +61831,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCss", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "labelCss", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -77499,13 +61844,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -77523,37 +61869,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCss", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCss", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -77568,12 +61884,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -77581,20 +61895,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCss", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -77606,13 +61906,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -77630,36 +61931,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCss", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "labelCss", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -77672,13 +61944,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -77696,37 +61969,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCss", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCss", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -77781,14 +62024,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -77806,37 +62050,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCss", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCss", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -78101,12 +62315,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -78114,20 +62326,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -78139,13 +62337,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -78163,36 +62362,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -78205,13 +62375,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -78229,37 +62400,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -78274,12 +62415,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -78287,20 +62426,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -78312,13 +62437,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -78336,36 +62462,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -78378,13 +62475,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -78402,37 +62500,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -78487,14 +62555,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -78512,37 +62581,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "labelCssClasses", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -78811,12 +62850,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -78824,20 +62861,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -78849,13 +62872,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -78873,36 +62897,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -78915,13 +62910,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -78939,37 +62935,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -78984,12 +62950,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -78997,20 +62961,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -79022,13 +62972,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -79046,36 +62997,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -79088,13 +63010,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -79112,37 +63035,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -79197,14 +63090,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -79222,37 +63116,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "pitchAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -79521,12 +63385,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -79534,20 +63396,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -79559,13 +63407,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -79583,36 +63432,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -79625,13 +63445,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -79649,37 +63470,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -79694,12 +63485,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -79707,20 +63496,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -79732,13 +63507,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -79756,36 +63532,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -79798,13 +63545,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -79822,37 +63570,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -79907,14 +63625,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -79932,37 +63651,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "mapRendering", - "renderings", - "rotationAlignment", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -80163,86 +63852,6 @@ "layers", "override", "presets", - "preciseInput" - ], - "required": false, - "hints": {}, - "type": [ - { - "type": "object", - "properties": { - "preferredBackground": { - "description": "The type of background picture", - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ] - }, - "snapToLayer": { - "description": "If specified, these layers will be shown to and the new point will be snapped towards it", - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ] - }, - "maxSnapDistance": { - "description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10", - "type": "number" - } - } - }, - { - "enum": [ - true - ], - "type": "boolean" - } - ], - "description": "If set, the user will prompted to confirm the location before actually adding the data.\nThis will be with a 'drag crosshair'-method.\n\nIf 'preferredBackgroundCategory' is set, the element will attempt to pick a background layer of that category." - }, - { - "path": [ - "layers", - "override", - "presets", - "preciseInput", - "preferredBackground" - ], - "required": false, - "hints": {}, - "type": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ], - "description": "The type of background picture" - }, - { - "path": [ - "layers", - "override", - "presets", - "preciseInput", "snapToLayer" ], "required": false, @@ -80265,13 +63874,14 @@ "layers", "override", "presets", - "preciseInput", "maxSnapDistance" ], "required": false, - "hints": {}, + "hints": { + "default": "10" + }, "type": "number", - "description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10" + "description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n" }, { "path": [ @@ -80509,14 +64119,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -80534,33 +64145,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -80661,12 +64246,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -80677,19 +64260,6 @@ ], "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}" }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "mappings", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -80700,13 +64270,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -80724,34 +64295,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "mappings", - "hideInAnswer", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "tagRenderings", - "mappings", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -80763,13 +64307,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -80787,35 +64332,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -80829,12 +64346,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -80842,19 +64357,6 @@ ], "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`" }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "mappings", - "ifnot" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -80865,13 +64367,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -80889,34 +64392,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "mappings", - "ifnot", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "tagRenderings", - "mappings", - "ifnot" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -80928,13 +64404,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -80952,35 +64429,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -81007,12 +64456,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -81020,19 +64467,6 @@ ], "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly" }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "mappings", - "priorityIf" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -81043,13 +64477,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -81067,34 +64502,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "mappings", - "priorityIf", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "tagRenderings", - "mappings", - "priorityIf" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -81106,13 +64514,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -81130,35 +64539,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -81296,12 +64677,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -81309,18 +64688,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -81330,13 +64697,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -81354,32 +64722,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "tagRenderings", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -81390,13 +64733,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -81414,33 +64758,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -81453,12 +64771,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -81466,18 +64782,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -81487,13 +64791,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -81511,32 +64816,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "tagRenderings", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -81547,13 +64827,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -81571,33 +64852,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -81770,14 +65025,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -81795,35 +65051,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -81929,12 +65157,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -81945,20 +65171,6 @@ ], "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}" }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "mappings", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -81970,13 +65182,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -81994,36 +65207,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "mappings", - "hideInAnswer", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "tagRenderings", - "override", - "mappings", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -82036,13 +65220,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -82060,37 +65245,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -82105,12 +65260,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -82118,20 +65271,6 @@ ], "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`" }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "mappings", - "ifnot" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -82143,13 +65282,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -82167,36 +65307,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "mappings", - "ifnot", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "tagRenderings", - "override", - "mappings", - "ifnot" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -82209,13 +65320,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -82233,37 +65345,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -82292,12 +65374,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -82305,20 +65385,6 @@ ], "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly" }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "mappings", - "priorityIf" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -82330,13 +65396,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -82354,36 +65421,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "mappings", - "priorityIf", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "tagRenderings", - "override", - "mappings", - "priorityIf" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -82396,13 +65434,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -82420,37 +65459,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -82595,12 +65604,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -82608,19 +65615,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -82631,13 +65625,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -82655,34 +65650,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "tagRenderings", - "override", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -82694,13 +65662,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -82718,35 +65687,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -82760,12 +65701,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -82773,19 +65712,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -82796,13 +65722,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -82820,34 +65747,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "tagRenderings", - "override", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -82859,13 +65759,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -82883,35 +65784,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "override", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -83107,14 +65980,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -83132,35 +66006,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -83266,12 +66112,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -83282,20 +66126,6 @@ ], "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}" }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "mappings", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -83307,13 +66137,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -83331,36 +66162,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "mappings", - "hideInAnswer", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "tagRenderings", - "renderings", - "mappings", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -83373,13 +66175,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -83397,37 +66200,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -83442,12 +66215,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -83455,20 +66226,6 @@ ], "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`" }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "mappings", - "ifnot" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -83480,13 +66237,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -83504,36 +66262,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "mappings", - "ifnot", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "tagRenderings", - "renderings", - "mappings", - "ifnot" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -83546,13 +66275,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -83570,37 +66300,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -83629,12 +66329,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -83642,20 +66340,6 @@ ], "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly" }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "mappings", - "priorityIf" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -83667,13 +66351,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -83691,36 +66376,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "mappings", - "priorityIf", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "tagRenderings", - "renderings", - "mappings", - "priorityIf" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -83733,13 +66389,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -83757,37 +66414,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -83932,12 +66559,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -83945,19 +66570,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -83968,13 +66580,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -83992,34 +66605,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "tagRenderings", - "renderings", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -84031,13 +66617,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -84055,35 +66642,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -84097,12 +66656,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -84110,19 +66667,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -84133,13 +66677,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -84157,34 +66702,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "tagRenderings", - "renderings", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -84196,13 +66714,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -84220,35 +66739,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -84433,14 +66924,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -84458,37 +66950,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -84599,12 +67061,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -84615,21 +67075,6 @@ ], "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}" }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "mappings", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -84642,13 +67087,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -84666,38 +67112,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "mappings", - "hideInAnswer", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "tagRenderings", - "renderings", - "override", - "mappings", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -84711,13 +67126,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -84735,39 +67151,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -84783,12 +67167,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -84796,21 +67178,6 @@ ], "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`" }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "mappings", - "ifnot" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -84823,13 +67190,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -84847,38 +67215,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "mappings", - "ifnot", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "tagRenderings", - "renderings", - "override", - "mappings", - "ifnot" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -84892,13 +67229,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -84916,39 +67254,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -84979,12 +67285,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -84992,21 +67296,6 @@ ], "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly" }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "mappings", - "priorityIf" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -85019,13 +67308,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -85043,38 +67333,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "mappings", - "priorityIf", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "tagRenderings", - "renderings", - "override", - "mappings", - "priorityIf" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -85088,13 +67347,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -85112,39 +67372,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -85296,12 +67524,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -85309,20 +67535,6 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -85334,13 +67546,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -85358,36 +67571,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "condition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "tagRenderings", - "renderings", - "override", - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -85400,13 +67584,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -85424,37 +67609,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -85469,12 +67624,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -85482,20 +67635,6 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -85507,13 +67646,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -85531,36 +67671,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "tagRenderings", - "renderings", - "override", - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -85573,13 +67684,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -85597,37 +67709,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "tagRenderings", - "renderings", - "override", - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -85700,34 +67782,21 @@ "osmTags" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "filter", - "options", - "osmTags" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -85739,13 +67808,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -85763,34 +67833,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "filter", - "options", - "osmTags", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "filter", - "options", - "osmTags" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -85802,13 +67845,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -85826,35 +67870,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "filter", - "options", - "osmTags", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "filter", - "options", - "osmTags", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -85959,14 +67975,15 @@ "nonDeleteMappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -85984,33 +68001,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "deletion", - "nonDeleteMappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "deletion", - "nonDeleteMappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -86035,12 +68026,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -86048,18 +68037,6 @@ ], "description": "In some cases, the contributor is not allowed to delete the current feature (e.g. because it isn't a point, the point is referenced by a relation or the user isn't experienced enough).\nTo still offer the user a 'delete'-option, the feature is retagged with these tags. This is a soft deletion, as the point isn't actually removed from OSM but rather marked as 'disused'\nIt is important that the feature will be retagged in such a way that it won't be picked up by the layer anymore!\n\nExample (note that \"amenity=\" erases the 'amenity'-key alltogether):\n```\n{\n \"and\": [\"disussed:amenity=public_bookcase\", \"amenity=\"]\n}\n```\n\nor (notice the use of the ':='-tag to copy the old value of 'shop=*' into 'disused:shop='):\n```\n{\n \"and\": [\"disused:shop:={shop}\", \"shop=\"]\n}\n```" }, - { - "path": [ - "layers", - "override", - "deletion", - "softDeletionTags" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "layers", @@ -86069,13 +68046,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -86093,32 +68071,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "deletion", - "softDeletionTags", - "and" - ], - "required": false, - "hints": {}, - "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", - "override", - "deletion", - "softDeletionTags" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -86129,13 +68082,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -86153,33 +68107,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "layers", - "override", - "deletion", - "softDeletionTags", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "layers", - "override", - "deletion", - "softDeletionTags", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -86269,9 +68197,11 @@ "units" ], "required": false, - "hints": {}, + "hints": { + "default": "ult: true," + }, "type": "object", - "description": "In some cases, a value is represented in a certain unit (such as meters for heigt/distance/..., km/h for speed, ...)\n\nSometimes, multiple denominations are possible (e.g. km/h vs mile/h; megawatt vs kilowatt vs gigawatt for power generators, ...)\n\nThis brings in some troubles, as there are multiple ways to write it (no denomitation, 'm' vs 'meter' 'metre', ...)\n\nNot only do we want to write consistent data to OSM, we also want to present this consistently to the user.\nThis is handled by defining units.\n\n# Rendering\n\nTo render a value with long (human) denomination, use {canonical(key)}\n\n# Usage\n\nFirst of all, you define which keys have units applied, for example:\n\n```\nunits: [\n appliesTo: [\"maxspeed\", \"maxspeed:hgv\", \"maxspeed:bus\"]\n applicableUnits: [\n ...\n ]\n]\n```\n\nApplicableUnits defines which is the canonical extension, how it is presented to the user, ...:\n\n```\napplicableUnits: [\n{\n canonicalDenomination: \"km/h\",\n alternativeDenomination: [\"km/u\", \"kmh\", \"kph\"]\n default: true,\n human: {\n en: \"kilometer/hour\",\n nl: \"kilometer/uur\"\n },\n humanShort: {\n en: \"km/h\",\n nl: \"km/u\"\n }\n},\n{\n canoncialDenomination: \"mph\",\n ... similar for miles an hour ...\n}\n]\n```\n\n\nIf this is defined, then every key which the denominations apply to (`maxspeed`, `maxspeed:hgv` and `maxspeed:bus`) will be rewritten at the metatagging stage:\nevery value will be parsed and the canonical extension will be added add presented to the other parts of the code.\n\nAlso, if a freeform text field is used, an extra dropdown with applicable denominations will be given" + "description": "In some cases, a value is represented in a certain unit (such as meters for heigt/distance/..., km/h for speed, ...)\n\nSometimes, multiple denominations are possible (e.g. km/h vs mile/h; megawatt vs kilowatt vs gigawatt for power generators, ...)\n\nThis brings in some troubles, as there are multiple ways to write it (no denomitation, 'm' vs 'meter' 'metre', ...)\n\nNot only do we want to write consistent data to OSM, we also want to present this consistently to the user.\nThis is handled by defining units.\n\n# Rendering\n\nTo render a value with long (human) denomination, use {canonical(key)}\n\n# Usage\n\nFirst of all, you define which keys have units applied, for example:\n\n```\nunits: [\n appliesTo: [\"maxspeed\", \"maxspeed:hgv\", \"maxspeed:bus\"]\n applicableUnits: [\n ...\n ]\n]\n```\n\nApplicableUnits defines which is the canonical extension, how it is presented to the user, ...:\n\n```\napplicableUnits: [\n{\n canonicalDenomination: \"km/h\",\n alternativeDenomination: [\"km/u\", \"kmh\", \"kph\"]\n human: {\n en: \"kilometer/hour\",\n nl: \"kilometer/uur\"\n },\n humanShort: {\n en: \"km/h\",\n nl: \"km/u\"\n }\n},\n{\n canoncialDenomination: \"mph\",\n ... similar for miles an hour ...\n}\n]\n```\n\n\nIf this is defined, then every key which the denominations apply to (`maxspeed`, `maxspeed:hgv` and `maxspeed:bus`) will be rewritten at the metatagging stage:\nevery value will be parsed and the canonical extension will be added add presented to the other parts of the code.\n\nAlso, if a freeform text field is used, an extra dropdown with applicable denominations will be given" }, { "path": [ diff --git a/assets/questionabletagrenderingconfigmeta.json b/assets/questionabletagrenderingconfigmeta.json index d50e90e9f..2e7f94441 100644 --- a/assets/questionabletagrenderingconfigmeta.json +++ b/assets/questionabletagrenderingconfigmeta.json @@ -129,14 +129,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -154,27 +155,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -260,12 +241,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": [ @@ -276,16 +255,6 @@ ], "description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n\n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}" }, - { - "path": [ - "mappings", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mappings", @@ -293,13 +262,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -317,28 +287,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mappings", - "hideInAnswer", - "and" - ], - "required": false, - "hints": {}, - "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", - "hideInAnswer" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -347,13 +296,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -371,29 +321,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mappings", - "hideInAnswer", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -404,12 +332,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -417,16 +343,6 @@ ], "description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`" }, - { - "path": [ - "mappings", - "ifnot" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mappings", @@ -434,13 +350,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -458,28 +375,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mappings", - "ifnot", - "and" - ], - "required": false, - "hints": {}, - "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", - "ifnot" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -488,13 +384,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -512,29 +409,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mappings", - "ifnot", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -555,12 +430,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -568,16 +441,6 @@ ], "description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly" }, - { - "path": [ - "mappings", - "priorityIf" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "mappings", @@ -585,13 +448,14 @@ "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -609,28 +473,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mappings", - "priorityIf", - "and" - ], - "required": false, - "hints": {}, - "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", - "priorityIf" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -639,13 +482,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -663,29 +507,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mappings", - "priorityIf", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -802,12 +624,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -815,28 +635,20 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "condition", "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -854,26 +666,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -881,13 +674,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -905,27 +699,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -935,12 +709,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -948,28 +720,20 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "metacondition", "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -987,26 +751,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -1014,13 +759,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -1038,26 +784,6 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" } ] \ No newline at end of file diff --git a/assets/tagrenderingconfigmeta.json b/assets/tagrenderingconfigmeta.json index 19d986fc7..3979d576f 100644 --- a/assets/tagrenderingconfigmeta.json +++ b/assets/tagrenderingconfigmeta.json @@ -111,12 +111,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -124,28 +122,20 @@ ], "description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```" }, - { - "path": [ - "condition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "condition", "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -163,26 +153,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "condition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "condition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -190,13 +161,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -214,27 +186,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "condition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "condition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -244,12 +196,10 @@ "hints": {}, "type": [ { - "$ref": "#/definitions/AndTagConfigJson", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "$ref": "#/definitions/OrTagConfigJson", - "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" + "$ref": "#/definitions/{or:TagConfigJson[];}" }, { "type": "string" @@ -257,28 +207,20 @@ ], "description": "If set, this tag will be evaluated agains the _usersettings/application state_ table.\nEnable 'show debug info' in user settings to see available options.\nNote that values with an underscore depicts _application state_ (including metainfo about the user) whereas values without an underscore depict _user settings_" }, - { - "path": [ - "metacondition" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, { "path": [ "metacondition", "and" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -296,26 +238,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "metacondition", - "and" - ], - "required": false, - "hints": {}, - "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": [ - "metacondition" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -323,13 +246,14 @@ "or" ], "required": false, - "hints": {}, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -347,27 +271,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "metacondition", - "or" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ @@ -402,14 +306,15 @@ "mappings", "if" ], - "required": false, - "hints": {}, + "required": true, + "hints": { + "typehint": "tag" + }, "type": [ { - "$ref": "#/definitions/AndTagConfigJson" + "$ref": "#/definitions/{and:TagConfigJson[];}" }, { - "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", "type": "object", "properties": { "or": { @@ -427,27 +332,7 @@ "type": "string" } ], - "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" - }, - { - "path": [ - "mappings", - "if" - ], - "required": false, - "hints": {}, - "type": "object", - "description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" - }, - { - "path": [ - "mappings", - "if" - ], - "required": false, - "hints": {}, - "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" + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n" }, { "path": [ diff --git a/public/css/index-tailwind-output.css b/public/css/index-tailwind-output.css index 47636aa06..5d9d03809 100644 --- a/public/css/index-tailwind-output.css +++ b/public/css/index-tailwind-output.css @@ -638,6 +638,17 @@ video { border-width: 0; } +.not-sr-only { + position: static; + width: auto; + height: auto; + padding: 0; + margin: 0; + overflow: visible; + clip: auto; + white-space: normal; +} + .pointer-events-none { pointer-events: none; } @@ -687,6 +698,13 @@ video { position: sticky; } +.-inset-1 { + top: -0.25rem; + right: -0.25rem; + bottom: -0.25rem; + left: -0.25rem; +} + .left-24 { left: 6rem; } @@ -751,6 +769,10 @@ video { isolation: isolate; } +.isolation-auto { + isolation: auto; +} + .float-right { float: right; } @@ -979,14 +1001,62 @@ video { display: table; } +.inline-table { + display: inline-table; +} + +.table-caption { + display: table-caption; +} + +.table-cell { + display: table-cell; +} + +.table-column { + display: table-column; +} + +.table-column-group { + display: table-column-group; +} + +.table-footer-group { + display: table-footer-group; +} + +.table-header-group { + display: table-header-group; +} + +.table-row-group { + display: table-row-group; +} + +.table-row { + display: table-row; +} + +.flow-root { + display: flow-root; +} + .grid { display: grid; } +.inline-grid { + display: inline-grid; +} + .contents { display: contents; } +.list-item { + display: list-item; +} + .hidden { display: none; } @@ -1193,6 +1263,10 @@ video { flex-shrink: 0; } +.shrink { + flex-shrink: 1; +} + .grow { flex-grow: 1; } @@ -1259,6 +1333,11 @@ video { resize: both; } +.appearance-none { + -webkit-appearance: none; + appearance: none; +} + .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); } @@ -1355,6 +1434,34 @@ video { column-gap: 0.25rem; } +.space-y-reverse > :not([hidden]) ~ :not([hidden]) { + --tw-space-y-reverse: 1; +} + +.space-x-reverse > :not([hidden]) ~ :not([hidden]) { + --tw-space-x-reverse: 1; +} + +.divide-x > :not([hidden]) ~ :not([hidden]) { + --tw-divide-x-reverse: 0; + border-right-width: calc(1px * var(--tw-divide-x-reverse)); + border-left-width: calc(1px * calc(1 - var(--tw-divide-x-reverse))); +} + +.divide-y > :not([hidden]) ~ :not([hidden]) { + --tw-divide-y-reverse: 0; + border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse))); + border-bottom-width: calc(1px * var(--tw-divide-y-reverse)); +} + +.divide-y-reverse > :not([hidden]) ~ :not([hidden]) { + --tw-divide-y-reverse: 1; +} + +.divide-x-reverse > :not([hidden]) ~ :not([hidden]) { + --tw-divide-x-reverse: 1; +} + .self-start { align-self: flex-start; } @@ -1393,6 +1500,10 @@ video { text-overflow: ellipsis; } +.text-clip { + text-overflow: clip; +} + .break-normal { overflow-wrap: normal; word-break: normal; @@ -1435,6 +1546,37 @@ video { border-bottom-left-radius: 0.25rem; } +.rounded-t { + border-top-left-radius: 0.25rem; + border-top-right-radius: 0.25rem; +} + +.rounded-r { + border-top-right-radius: 0.25rem; + border-bottom-right-radius: 0.25rem; +} + +.rounded-b { + border-bottom-right-radius: 0.25rem; + border-bottom-left-radius: 0.25rem; +} + +.rounded-tl { + border-top-left-radius: 0.25rem; +} + +.rounded-tr { + border-top-right-radius: 0.25rem; +} + +.rounded-br { + border-bottom-right-radius: 0.25rem; +} + +.rounded-bl { + border-bottom-left-radius: 0.25rem; +} + .border { border-width: 1px; } @@ -1447,6 +1589,20 @@ video { border-width: 2px; } +.border-8 { + border-width: 8px; +} + +.border-x { + border-left-width: 1px; + border-right-width: 1px; +} + +.border-y { + border-top-width: 1px; + border-bottom-width: 1px; +} + .border-b { border-bottom-width: 1px; } @@ -1455,12 +1611,20 @@ video { border-bottom-width: 2px; } -.border-dashed { - border-style: dashed; +.border-t { + border-top-width: 1px; } -.border-dotted { - border-style: dotted; +.border-r { + border-right-width: 1px; +} + +.border-l { + border-left-width: 1px; +} + +.border-dashed { + border-style: dashed; } .border-black { @@ -1478,16 +1642,16 @@ video { border-color: rgb(209 213 219 / var(--tw-border-opacity)); } -.border-gray-400 { - --tw-border-opacity: 1; - border-color: rgb(156 163 175 / var(--tw-border-opacity)); -} - .border-gray-600 { --tw-border-opacity: 1; border-color: rgb(75 85 99 / var(--tw-border-opacity)); } +.border-gray-400 { + --tw-border-opacity: 1; + border-color: rgb(156 163 175 / var(--tw-border-opacity)); +} + .border-gray-500 { --tw-border-opacity: 1; border-color: rgb(107 114 128 / var(--tw-border-opacity)); @@ -1527,6 +1691,10 @@ video { background-color: rgb(220 38 38 / var(--tw-bg-opacity)); } +.bg-repeat { + background-repeat: repeat; +} + .p-8 { padding: 2rem; } @@ -1599,10 +1767,6 @@ video { padding-top: 0px; } -.pt-2 { - padding-top: 0.5rem; -} - .pl-5 { padding-left: 1.25rem; } @@ -1702,15 +1866,61 @@ video { text-transform: lowercase; } +.capitalize { + text-transform: capitalize; +} + +.normal-case { + text-transform: none; +} + .italic { font-style: italic; } +.not-italic { + font-style: normal; +} + +.normal-nums { + font-variant-numeric: normal; +} + .ordinal { --tw-ordinal: ordinal; font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction); } +.slashed-zero { + --tw-slashed-zero: slashed-zero; + font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction); +} + +.lining-nums { + --tw-numeric-figure: lining-nums; + font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction); +} + +.oldstyle-nums { + --tw-numeric-figure: oldstyle-nums; + font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction); +} + +.proportional-nums { + --tw-numeric-spacing: proportional-nums; + font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction); +} + +.tabular-nums { + --tw-numeric-spacing: tabular-nums; + font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction); +} + +.diagonal-fractions { + --tw-numeric-fraction: diagonal-fractions; + font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction); +} + .leading-none { line-height: 1; } @@ -1751,11 +1961,20 @@ video { text-decoration-line: line-through; } +.no-underline { + text-decoration-line: none; +} + .antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } +.subpixel-antialiased { + -webkit-font-smoothing: auto; + -moz-osx-font-smoothing: auto; +} + .opacity-50 { opacity: 0.5; } @@ -1776,6 +1995,10 @@ video { box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); } +.ring-inset { + --tw-ring-inset: inset; +} + .blur { --tw-blur: blur(8px); -webkit-filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); @@ -1794,6 +2017,12 @@ video { filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); } +.drop-shadow { + --tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06)); + -webkit-filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); + filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); +} + .grayscale { --tw-grayscale: grayscale(100%); -webkit-filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); @@ -1822,6 +2051,35 @@ video { filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow) !important; } +.backdrop-blur { + --tw-backdrop-blur: blur(8px); + -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia); + backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia); +} + +.backdrop-grayscale { + --tw-backdrop-grayscale: grayscale(100%); + -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia); + backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia); +} + +.backdrop-invert { + --tw-backdrop-invert: invert(100%); + -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia); + backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia); +} + +.backdrop-sepia { + --tw-backdrop-sepia: sepia(100%); + -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia); + backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia); +} + +.backdrop-filter { + -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia); + backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia); +} + .transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); @@ -1840,6 +2098,10 @@ video { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); } +.\[a-zA-Z0-9\:_\] { + a-z-a--z0-9: ; +} + .\[key\:string\] { key: string; } @@ -2603,10 +2865,6 @@ a.link-underline { flex-wrap: nowrap; } - .md\:border-t-2 { - border-top-width: 2px; - } - .md\:p-6 { padding: 1.5rem; } diff --git a/scripts/fixSchemas.ts b/scripts/fixSchemas.ts index 5d305b2d7..884d7324d 100644 --- a/scripts/fixSchemas.ts +++ b/scripts/fixSchemas.ts @@ -3,12 +3,12 @@ import { readFileSync, writeFileSync } from "fs" import { JsonSchema } from "../UI/Studio/jsonSchema" function WalkScheme( - onEach: (schemePart: JsonSchema) => T, + onEach: (schemePart: JsonSchema, path: string[]) => T, scheme: JsonSchema, fullScheme: JsonSchema & { definitions?: any } = undefined, path: string[] = [], isHandlingReference = [], - required?: string[] + required: string[] ): { path: string[]; required: boolean; t: T }[] { const results: { path: string[]; required: boolean; t: T }[] = [] if (scheme === undefined) { @@ -26,18 +26,23 @@ function WalkScheme( return [] } const loadedScheme = fullScheme.definitions[definitionName] - return WalkScheme(onEach, loadedScheme, fullScheme, path, [ - ...isHandlingReference, - definitionName, - ]) + return WalkScheme( + onEach, + loadedScheme, + fullScheme, + path, + [...isHandlingReference, definitionName], + required + ) } fullScheme = fullScheme ?? scheme - let t = onEach(scheme) + let t = onEach(scheme, path) if (t !== undefined) { + const isRequired = required?.indexOf(path.at(-1)) >= 0 results.push({ path, - required: required?.indexOf(path.at(-1)) >= 0, + required: isRequired, t, }) } @@ -46,7 +51,7 @@ function WalkScheme( if (v === undefined) { return } - results.push(...WalkScheme(onEach, v, fullScheme, path, isHandlingReference)) + results.push(...WalkScheme(onEach, v, fullScheme, path, isHandlingReference, v.required)) } function walkEach(scheme: JsonSchema[]) { @@ -87,7 +92,7 @@ function WalkScheme( } function addMetafields(fieldnames: string[], fullSchema: JsonSchema) { - return WalkScheme((schemePart) => { + const onEach = (schemePart, path) => { if (schemePart.description === undefined) { return } @@ -113,8 +118,31 @@ function addMetafields(fieldnames: string[], fullSchema: JsonSchema) { } } + if (hints["types"]) { + const numberOfExpectedSubtypes = hints["types"].split(";").length + if (!Array.isArray(type)) { + throw ( + "At " + + path.join(".") + + "Invalid hint in the documentation: `types` indicates that there are " + + numberOfExpectedSubtypes + + " subtypes, but object does not support subtypes. Did you mean `type` instead?\n\tTypes are: " + + hints["types"] + ) + } + const numberOfActualTypes = type.length + if (numberOfActualTypes !== numberOfExpectedSubtypes) { + throw `At ${path.join( + "." + )}\nInvalid hint in the documentation: \`types\` indicates that there are ${numberOfExpectedSubtypes} subtypes, but there are ${numberOfActualTypes} subtypes +\tTypes are: ${hints["types"]}` + } + } + return { hints, type, description: description.join("\n") } - }, fullSchema) + } + + return WalkScheme(onEach, fullSchema, fullSchema, [], [], fullSchema.required) } function extractMeta(typename: string, path: string) { @@ -124,7 +152,9 @@ function extractMeta(typename: string, path: string) { const metainfo = { type: "One of the inputValidator types", + types: "Is multiple types are allowed for this field, then first show a mapping to pick the appropriate subtype. `Types` should be `;`-separated and contain precisely the same amount of subtypes", group: "A kind of label. Items with the same group name will be placed in the same region", + default: "The default value which is used if no value is specified", question: "The question to ask in the tagRenderingConfig", ifunset: "Only applicable if _not_ a required item. This will appear in the 'not set'-option as extra description", diff --git a/studio.html b/studio.html index 62228e099..a9c392837 100644 --- a/studio.html +++ b/studio.html @@ -2,7 +2,7 @@ - MapComplete statistics + MapComplete Studio