Skip to content

Commit

Permalink
schema: Allow patch versions for deprecations under 0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jul 3, 2024
1 parent 095574e commit 42b0960
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions schema/codelist-schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Codelist schema",
"description": "Schema for OCDS codelist CSV files.",
"description": "Schema for codelist CSV files.",
"type": "array",
"items": {
"type": "object",
Expand All @@ -14,7 +14,7 @@
"properties": {
"Code": {
"title": "Code",
"description": "The value to use in OCDS data. Codes should match the letter case of external codes (e.g. ISO 4217, JSON Schema, GeoJSON, IANA Media Types) and should be camel case, otherwise.",
"description": "The value to use in data. Codes should match the letter case of external codes (e.g. ISO 4217, JSON Schema, GeoJSON, IANA Media Types) and should be camel case, otherwise.",
"type": "string",
"pattern": "^(([a-z]+|oc4ids)([A-Z][a-z]+|EU|GPP)*(\\.[a-z]+([A-Z][a-z]+)*)?|[A-Z]+[0-9]?|[A-Z]{2}(-[A-Z]+)+|TED(_[A-Z]+)+|eu(-[a-z]+)+|date-time|LineString|Point|Polygon|MultiLineString|MultiPoint|MultiPolygon|(offline|application|audio|font|example|image|message|model|multipart|text|video)/[\\w.+-]+|pre-award)$"
},
Expand Down Expand Up @@ -50,12 +50,12 @@
},
"Deprecated": {
"title": "Deprecated",
"description": "The minor version of OCDS in which the code was deprecated.",
"description": "The minor version (or patch version under 0.x) in which the code was deprecated.",
"type": [
"string",
"null"
],
"pattern": "^\\d+\\.\\d+$"
"pattern": "^(\\d+\\.\\d+|0\\.\\d+\\.\\d+)$"
},
"Deprecation note": {
"title": "Deprecation note",
Expand All @@ -68,7 +68,7 @@
},
"Extension": {
"title": "Extension",
"description": "The title of the OCDS extension from which the code is sourced, or 'OCDS Core'.",
"description": "The title of the extension from which the code is sourced, or 'OCDS Core'.",
"type": [
"string",
"null"
Expand Down

0 comments on commit 42b0960

Please sign in to comment.