Skip to content

Commit 6f5a4be

Browse files
restrict date regex to only valid months; fixes #310
1 parent daeadcf commit 6f5a4be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

schemas/ext_schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@
147147
},
148148
"ratification_date": {
149149
"oneOf": [
150-
{"type": "string", "pattern": "^20[0-9][0-9]-[0-9][0-9]$", "$comment": "When ratification date is known" },
150+
{"type": "string", "pattern": "^20[0-9][0-9]-[0-1][0-2]$", "$comment": "When ratification date is known",
151+
"description": "<4 digit year>-<2 digit month>", "examples": ["2019-01", "2024-12"] },
151152
{"type": "string", "pattern": "^unknown$", "$comment": "When ratification date is unknown" },
152153
{"type": "null", "$comment": "When version isn't ratified" }
153154
]

0 commit comments

Comments
 (0)