forked from jsonrainbow/json-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
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 (jsonrainbow#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
Showing
4 changed files
with
43 additions
and
6 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
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