diff --git a/package.json b/package.json index 3fe4b3b9..01a28e16 100644 --- a/package.json +++ b/package.json @@ -7,12 +7,13 @@ "npm": "^10.0.0" }, "scripts": { - "build": "astro build && node profiles/build.js", + "build": "astro build && npm run profiles", "clean": "find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' +", "format": "eslint --fix . && prettier --write .", "generate": "astro sync", "lint": "eslint . && prettier --check .", "preview": "astro preview --port 8080", + "profiles": "node profiles/build.js", "start": "astro dev --open --port 8080", "update": "ncu -u", "test": "npm run lint" diff --git a/profiles/source/dictionary/schema.yaml b/profiles/source/dictionary/schema.yaml index 9d5a59ad..e25c9663 100644 --- a/profiles/source/dictionary/schema.yaml +++ b/profiles/source/dictionary/schema.yaml @@ -224,9 +224,20 @@ tableSchemaFalseValues: type: string default: ["false", "False", "FALSE", "0"] tableSchemaMissingValues: - type: array - items: - type: string + anyOf: + - type: array + items: + type: string + - type: array + items: + type: object + required: + - value + properties: + value: + type: string + label: + type: string default: - "" description: Values that when encountered in the source, should be considered @@ -269,6 +280,10 @@ tableSchemaFieldString: "$ref": "#/definitions/example" missingValues: "$ref": "#/definitions/tableSchemaMissingValues" + categories: + "$ref": "#/definitions/tableSchemaCategoriesString" + categoriesOrdered: + "$ref": "#/definitions/tableSchemaCategoriesOrdered" type: description: The type keyword, which `MUST` be a value of `string`. enum: @@ -397,6 +412,10 @@ tableSchemaFieldInteger: "$ref": "#/definitions/example" missingValues: "$ref": "#/definitions/tableSchemaMissingValues" + categories: + "$ref": "#/definitions/tableSchemaCategoriesInteger" + categoriesOrdered: + "$ref": "#/definitions/tableSchemaCategoriesOrdered" type: description: The type keyword, which `MUST` be a value of `integer`. enum: @@ -1363,3 +1382,35 @@ tableSchemaGroupChar: type: string title: groupChar description: A string whose value is used to group digits within the number. This property does not have a default value. A common value is `,` e.g. '100,000'. +tableSchemaCategoriesString: + anyOf: + - type: array + items: + type: string + - type: array + items: + type: object + required: + - value + properties: + value: + type: string + label: + type: string +tableSchemaCategoriesInteger: + anyOf: + - type: array + items: + type: integer + - type: array + items: + type: object + required: + - value + properties: + value: + type: integer + label: + type: string +tableSchemaCategoriesOrdered: + type: boolean diff --git a/profiles/target/2.0/datapackage.json b/profiles/target/2.0/datapackage.json index e43e0bb8..6b5c6f61 100644 --- a/profiles/target/2.0/datapackage.json +++ b/profiles/target/2.0/datapackage.json @@ -732,10 +732,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -746,6 +767,36 @@ "{\n \"missingValues\": []\n}\n" ] }, + "categories": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ] + }, + "categoriesOrdered": { + "type": "boolean" + }, "type": { "description": "The type keyword, which `MUST` be a value of `string`.", "enum": [ @@ -852,10 +903,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1020,10 +1092,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1034,6 +1127,36 @@ "{\n \"missingValues\": []\n}\n" ] }, + "categories": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "integer" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "integer" + }, + "label": { + "type": "string" + } + } + } + } + ] + }, + "categoriesOrdered": { + "type": "boolean" + }, "type": { "description": "The type keyword, which `MUST` be a value of `integer`.", "enum": [ @@ -1182,10 +1305,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1293,10 +1437,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1403,10 +1568,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1513,10 +1699,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1665,10 +1872,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1777,10 +2005,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1898,10 +2147,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -2021,10 +2291,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -2147,10 +2438,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -2269,10 +2581,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -2393,10 +2726,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -2504,10 +2858,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -2684,10 +3059,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], diff --git a/profiles/target/2.0/dataresource.json b/profiles/target/2.0/dataresource.json index c8823d47..518a1ea9 100644 --- a/profiles/target/2.0/dataresource.json +++ b/profiles/target/2.0/dataresource.json @@ -496,10 +496,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -510,6 +531,36 @@ "{\n \"missingValues\": []\n}\n" ] }, + "categories": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ] + }, + "categoriesOrdered": { + "type": "boolean" + }, "type": { "description": "The type keyword, which `MUST` be a value of `string`.", "enum": [ @@ -616,10 +667,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -784,10 +856,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -798,6 +891,36 @@ "{\n \"missingValues\": []\n}\n" ] }, + "categories": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "integer" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "integer" + }, + "label": { + "type": "string" + } + } + } + } + ] + }, + "categoriesOrdered": { + "type": "boolean" + }, "type": { "description": "The type keyword, which `MUST` be a value of `integer`.", "enum": [ @@ -946,10 +1069,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1057,10 +1201,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1167,10 +1332,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1277,10 +1463,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1429,10 +1636,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1541,10 +1769,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1662,10 +1911,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1785,10 +2055,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1911,10 +2202,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -2033,10 +2345,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -2157,10 +2490,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -2268,10 +2622,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -2448,10 +2823,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], diff --git a/profiles/target/2.0/tableschema.json b/profiles/target/2.0/tableschema.json index 0d784d6c..f3a76baa 100644 --- a/profiles/target/2.0/tableschema.json +++ b/profiles/target/2.0/tableschema.json @@ -62,10 +62,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -76,6 +97,36 @@ "{\n \"missingValues\": []\n}\n" ] }, + "categories": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ] + }, + "categoriesOrdered": { + "type": "boolean" + }, "type": { "description": "The type keyword, which `MUST` be a value of `string`.", "enum": [ @@ -182,10 +233,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -350,10 +422,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -364,6 +457,36 @@ "{\n \"missingValues\": []\n}\n" ] }, + "categories": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "integer" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "integer" + }, + "label": { + "type": "string" + } + } + } + } + ] + }, + "categoriesOrdered": { + "type": "boolean" + }, "type": { "description": "The type keyword, which `MUST` be a value of `integer`.", "enum": [ @@ -512,10 +635,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -623,10 +767,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -733,10 +898,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -843,10 +1029,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -995,10 +1202,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1107,10 +1335,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1228,10 +1477,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1351,10 +1621,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1477,10 +1768,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1599,10 +1911,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1723,10 +2056,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -1834,10 +2188,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ], @@ -2014,10 +2389,31 @@ ] }, "missingValues": { - "type": "array", - "items": { - "type": "string" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + } + } + } + } + ], "default": [ "" ],