brandur / json_schema

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

Fix test #56

Closed floatplane closed 8 years ago

floatplane commented 8 years ago

Before:

  1) Failure:
test_0002_returns errors on a parsing problem(JsonSchema::.parse!) [/Users/brian/src/json_schema/test/json_schema_test.rb:31]:
[RuntimeError] exception expected, not
Class: <JsonSchema::AggregateError>
Message: <"#: 4 is not a valid schema.">
---Backtrace---
/Users/brian/src/json_schema/lib/json_schema/parser.rb:40:in `parse!'
/Users/brian/src/json_schema/lib/json_schema.rb:28:in `parse!'
/Users/brian/src/json_schema/test/json_schema_test.rb:32:in `block (4 levels) in <top (required)>'
floatplane commented 8 years ago

I don't know why this wouldn't have triggered CI failure in the past, though.

brandur commented 8 years ago

Wow crazy. I'm not sure either ...

This looks correct to me though. Thanks!