voxpupuli / json-schema

Ruby JSON Schema Validator
MIT License
1.53k stars 242 forks source link

JSON API 1.0 Support #272

Closed ACPK closed 8 years ago

ACPK commented 8 years ago

Any plans supporting JSON API 1.0?

RST-J commented 8 years ago

Supporting in what sense? You mean validating the document structure? If so, then no. You could write a schema which specifies how a JSON API document has to look like and then validate your actual server response against that schema (assuming it is possible to write a schema for that).

jlblcc commented 8 years ago

FYI, there's an existing schema: http://jsonapi.org/faq/#is-there-a-json-schema-describing-json-api.

iainbeeston commented 8 years ago

This doesn't make any sense to me. It's like saying we should validate "English poetry" or "Ruby on Rails apps". JSON API is a methodology of defining your json schema. There is no one json schema that can cover all JSON API schemas

RST-J commented 8 years ago

So I guess we can close this then.