-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Split "uri" format into "uri" & "uri-reference", fix meta-sc…
…hema bug (#419) * Split "uri" format into "uri" and "uri-reference" * Correct format for id & $ref in draft-03/04 meta-schemas See json-schema-org/JSON-Schema-Test-Suite#177 (comment)
- Loading branch information
1 parent
9fe7822
commit 2d404b8
Showing
5 changed files
with
46 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,12 +143,12 @@ public function getValidFormats() | |
array('555 320 1212', 'phone'), | ||
|
||
array('http://bluebox.org', 'uri'), | ||
array('//bluebox.org', 'uri'), | ||
array('/absolutePathReference/', 'uri'), | ||
array('./relativePathReference/', 'uri'), | ||
array('./relative:PathReference/', 'uri'), | ||
array('relativePathReference/', 'uri'), | ||
array('relative/Path:Reference/', 'uri'), | ||
array('//bluebox.org', 'uri-reference'), | ||
array('/absolutePathReference/', 'uri-reference'), | ||
array('./relativePathReference/', 'uri-reference'), | ||
array('./relative:PathReference/', 'uri-reference'), | ||
array('relativePathReference/', 'uri-reference'), | ||
array('relative/Path:Reference/', 'uri-reference'), | ||
|
||
array('[email protected]', 'email'), | ||
|
||
|
@@ -200,6 +200,12 @@ public function getInvalidFormats() | |
array('htt:/bluebox.org', 'uri'), | ||
array('.relative:path/reference/', 'uri'), | ||
array('', 'uri'), | ||
array('//bluebox.org', 'uri'), | ||
array('/absolutePathReference/', 'uri'), | ||
array('./relativePathReference/', 'uri'), | ||
array('./relative:PathReference/', 'uri'), | ||
array('relativePathReference/', 'uri'), | ||
array('relative/Path:Reference/', 'uri'), | ||
|
||
array('info@somewhere', 'email'), | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters