Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion schemas/ext_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@
},
"ratification_date": {
"oneOf": [
{"type": "string", "pattern": "^20[0-9][0-9]-[0-9][0-9]$", "$comment": "When ratification date is known" },
{"type": "string", "pattern": "^20[0-9][0-9]-(0[1-9]|1[0-2])$", "$comment": "When ratification date is known",
"description": "A specific year and month in YYYY-MM format", "examples": ["2019-01", "2024-12"] },
{"type": "string", "pattern": "^unknown$", "$comment": "When ratification date is unknown" },
{"type": "null", "$comment": "When version isn't ratified" }
]
Expand Down
5 changes: 3 additions & 2 deletions schemas/schema_defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@
"date": {
"type": "string",
"format": "date",
"description": "A specific day in YYYY-MM-DD format, for example 2018-11-13"
"description": "A specific day in YYYY-MM-DD format",
"examples": ["2018-11-13", "2024-12-31"]
},
"extension_name": {
"type": "string",
Expand All @@ -91,7 +92,7 @@
},
"requirement_string": {
"type": "string",
"pattern": "^((>=)|(>)|(~>)|(<)|(<=)|(=))\\s*[0-9]+(\\.[0-9]+(\\.[0-9]+(-[a-fA-F0-9]+)?)?)?$"
"pattern": "^((>=)|(>)|(~>)|(<)|(<=)|(=))?\\s*[0-9]+(\\.[0-9]+(\\.[0-9]+(-[a-fA-F0-9]+)?)?)?$"
},
"version_requirements": {
"description": "A (set of) version requirements",
Expand Down