brandur / json_schema

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

Simplify `JsonSchema#inspect` #29

Closed brandur closed 9 years ago

brandur commented 9 years ago

Unfortunately, our recursive inspect seems to cause trouble in some cases (see interagent/committee#77). Even when it doesn't, it's quite expensive to produce and can cause some trouble when higher level libraries call it automatically.

This simplifies #inspect to produce a minimal representation. The helper in #inspect_schema is still available for debugging.

brandur commented 9 years ago

Released in 0.6.1.