jsonapi-rb / jsonapi-parser

Validate JSON API documents.
http://jsonapi-rb.org
MIT License
27 stars 10 forks source link

The parser does not work. The test checks nothing #9

Closed SergiiVdovareize closed 6 years ago

SergiiVdovareize commented 6 years ago

Hi. This test doesn't check the parsed data. Are you sure it works?

https://github.com/jsonapi-rb/jsonapi-parser/blob/1ab3d3561f9f82a6f859cab8094fb5e4fa413255/spec/response_spec.rb#L51

SergiiVdovareize commented 6 years ago

The parser works only with flat data. It doesn't parse a collection in data. There is an array of a single element in the test and it can't be parsed.

SergiiVdovareize commented 6 years ago

Sorry. It's just a validation.