Skip to content

Commit 060ed23

Browse files
committed
1 parent ae71725 commit 060ed23

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/formats.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,8 @@ const core = {
142142
// relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00
143143
'relative-json-pointer': /^(?:0|[1-9][0-9]*)(?:|#|\/(?:[^~]|~0|~1)*)$/,
144144

145-
// matches ajv + unwrap nested group
146145
// uuid: http://tools.ietf.org/html/rfc4122
147-
uuid: /^(?:urn:uuid:)?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,
146+
uuid: /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,
148147

149148
// length restriction is an arbitrary safeguard
150149
// first regex checks if this a week duration (can't be combined with others)

test/json-schema.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ const unsupported = new Set([
9797
'rules/format.json/whitelisted unknown format is valid',
9898
'rules/format.json/validation of URL strings',
9999
'rules/format.json/validation of JSON-pointer URI fragment strings',
100+
'rules/format.json/validation of uuid strings', // URI form not valid per new spec for { format: 'uuid' }
100101
'issues/33_json_schema_latest.json/use latest json schema as v4 (#33)',
101102

102103
// draft-next only, object contains

0 commit comments

Comments
 (0)