Skip to content

Commit 1fcbc78

Browse files
committed
test(uuid): add URN-prefixed UUID as invalid
1 parent 60755c1 commit 1fcbc78

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

tests/draft2019-09/optional/format/uuid.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@
115115
"description": "hypothetical version 15",
116116
"data": "99c17cbb-656f-f64a-940f-1a4568f03487",
117117
"valid": true
118+
},
119+
{
120+
"description": "URN prefixed UUID is invalid",
121+
"data": "urn:uuid:2eb8aa08-aa98-11ea-b4aa-73b441d16380",
122+
"valid": false
118123
}
119124
]
120125
}

tests/draft2020-12/optional/format/uuid.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@
115115
"description": "hypothetical version 15",
116116
"data": "99c17cbb-656f-f64a-940f-1a4568f03487",
117117
"valid": true
118+
},
119+
{
120+
"description": "URN prefixed UUID is invalid",
121+
"data": "urn:uuid:2eb8aa08-aa98-11ea-b4aa-73b441d16380",
122+
"valid": false
118123
}
119124
]
120125
}

tests/v1/format/uuid.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@
115115
"description": "hypothetical version 15",
116116
"data": "99c17cbb-656f-f64a-940f-1a4568f03487",
117117
"valid": true
118+
},
119+
{
120+
"description": "URN prefixed UUID is invalid",
121+
"data": "urn:uuid:2eb8aa08-aa98-11ea-b4aa-73b441d16380",
122+
"valid": false
118123
}
119124
]
120125
}

0 commit comments

Comments
 (0)