hoxworth/json-schema — Issue #18: dependency with string value
Author: sakairyota
Created: 2011-10-24 14:57:35+00:00
State: open

schema:

{
"type":"object",
"properties":{
"a":{"type":"integer"},
"b":{"type":"integer"}
},
"dependencies":{
"a":"b"
}
}

data:

{"a" => 1, "b" => 1}

then
NoMethodError: undefined method `each' for "b":String

When the dependency value is an array, it works.

"dependencies":{
"a":["b"]
}