-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge configuration options to pass to subschemas
This effectively merges `Schema.new` options with the provided `Configuration` object (or the default global one) so that subschemas validate using the same configuration as the parent schema. `base_uri` and `meta_schema` are still instance variables because they're modified by keywords (that's why they're `attr_accessor`). `resolve_ref` still passes `ref_resolver` and `regexp_resolver` to subschemas to support caching (because the `CachedResolver` instances are created in `Schema`). They could maybe be cached in `Configuration` instead, but that felt like a bigger change. Fixes: #198
- Loading branch information
1 parent
03193ce
commit a1a2137
Showing
3 changed files
with
103 additions
and
22 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