jsonapi-suite / jsonapi_compliable

MIT License
20 stars 35 forks source link

Add schema generation (first-pass) #130

Closed richmolj closed 5 years ago

richmolj commented 5 years ago

JsonapiCompliable::Schema.generate([Array, Of, Resource, Classes]) will generate a jsonapi-specific schema. A backwards-compatibility check will be added in a subsequent commit.

If using Rails, no need to pass an array of classes. We will eager load everything and grab all relevant descendants of Resource.

Notes:

richmolj commented 5 years ago

@wadetandy