We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e81a7a8 commit 9e4d182Copy full SHA for 9e4d182
lib/json-schema/validator.rb
@@ -101,10 +101,8 @@ def schema_from_fragment(base_schema, fragment)
101
end
102
103
104
- if base_schema.is_a?(Hash)
+ if !base_schema.is_a?(JSON::Schema)
105
base_schema = JSON::Schema.new(base_schema, schema_uri, @options[:version])
106
- elsif base_schema.is_a?(Array)
107
- raise JSON::Schema::SchemaError.new("Invalid schema encountered when resolving :fragment option")
108
109
110
if @options[:list]
0 commit comments