forked from voxpupuli/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.
Refactor JSON::Schema and fix ListOptionTest.
* Refactor JSON::Schema#initialize to move schema URI generation into its own method, #generate_schema_uri. * Refactor JSON::Schema#base_uri to do less path munging itself. * Fix ListOptionTest, which was relying on seemingly unintended behaviour where JSON::Schema's constructor was modifying a URI in-place, thus appending a '#' to the URI used in the test. As JSON::Schema's constructor doesn't modify its arguments anymore, this test started to fail.
- Loading branch information
Showing
2 changed files
with
17 additions
and
19 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