brandur / json_schema

A JSON Schema V4 and Hyperschema V4 parser and validator.
MIT License
230 stars 45 forks source link

Property name "type". #47

Closed panSarin closed 8 years ago

panSarin commented 8 years ago

In few of our models we have field called 'type'. I want to document it by my json_schema, and use json_schema validator on it.

But during parsing it i have

: {"type"=>"string"} is not a valid "type", must be a array/string.

I get that this edge case is not implemented. Can I make PR with it, or you don't think that is a good idea?

Adam

panSarin commented 8 years ago

Srry, i passed bad format of JSON Schema.

brandur commented 8 years ago

NP. Glad you got it figured out.