test/test_ruby_schema.rb in json-schema-2.2.2 vs test/test_ruby_schema.rb in json-schema-2.2.3

- old
+ new

@@ -33,6 +33,36 @@ a: 5 } assert(JSON::Validator.validate(schema, data)) end -end \ No newline at end of file + + def test_symbol_keys_in_hash_within_array + schema = { + type: 'object', + properties: { + a: { + type: "array", + items: [ + { + properties: { + b: { + type: "integer" + } + } + } + ] + } + } + } + + data = { + a: [ + { + b: 1 + } + ] + } + + assert(JSON::Validator.validate(schema, data, :validate_schema => true)) + end +end