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 d7aa909 commit 1daada7Copy full SHA for 1daada7
lib/json-schema/schema.rb
@@ -6,6 +6,8 @@ class Schema
6
attr_accessor :schema, :uri, :validator
7
8
def initialize(schema,uri,parent_validator=nil)
9
+ raise ArgumentError, "schema must be a hash; got: #{schema.inspect}" unless schema.is_a?(Hash)
10
+
11
@schema = schema
12
@uri = uri
13
0 commit comments