Skip to content

Commit

Permalink
Add schema for verification files (unicode-org#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-oly authored Mar 12, 2024
1 parent f0e6c5f commit 4b0a419
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 0 deletions.
30 changes: 30 additions & 0 deletions schema/collation_short/verify_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/unicode/conformance/collation_short_verify_schema.json'",
"title": "ICU Collation verify data description",
"description": "This documents format of collation short verify data",
"type": "object",
"properties": {
"additionalProperties": false,
"verifications": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"label": {
"description": "A numeric ID, unique for the set of tests",
"type": "string"
},
"verify": {
"description": "The expected value for the test result",
"type": "boolean"
}
}
},
"required": [
"label",
"verify"
]
}
}
}
30 changes: 30 additions & 0 deletions schema/language_names/verify_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/unicode/conformance/language_name_verify_schema.json'",
"title": "ICU Language Name verify data description",
"description": "This documents format of language name verify data",
"type": "object",
"additionalProperties": false,
"properties": {
"verifications": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"label": {
"description": "A numeric ID, unique for the set of tests",
"type": "string"
},
"verify": {
"description": "The expected value for the test result",
"type": "string"
}
},
"required": [
"label",
"verify"
]
}
}
}
}
30 changes: 30 additions & 0 deletions schema/likely_subtags/verify_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/unicode/conformance/likely_subtags_verify_schema.json'",
"title": "ICU Likely subtags verify data description",
"description": "This documents format of likely subtags verify data",
"type": "object",
"additionalProperties": false,
"properties": {
"verifications": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"label": {
"description": "A numeric ID, unique for the set of tests",
"type": "string"
},
"verify": {
"description": "The expected value for the test result",
"type": "string"
}
},
"required": [
"label",
"verify"
]
}
}
}
}
30 changes: 30 additions & 0 deletions schema/number_format/verify_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/unicode/conformance/number_format__verify_schema.json'",
"title": "ICU Number format verify data description",
"description": "This documents format of number format verify data",
"type": "object",
"properties": {
"additionalProperties": false,
"verifications": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"label": {
"description": "A numeric ID, unique for the set of tests",
"type": "string"
},
"verify": {
"description": "The expected value for the test result",
"type": "string"
}
},
"required": [
"label",
"verify"
]
}
}
}
}

0 comments on commit 4b0a419

Please sign in to comment.