We're using JSON API for a project.
My Specs were failing due to the JSON Schema saying that type wasn't in the scaffolded response.
Ultimately, the loop was skipping the adding of an attribute if the key was type, which - in the JSONAPI Spec, type is used to denote the type of object in the response. Ex:
We're using JSON API for a project. My Specs were failing due to the JSON Schema saying that
type
wasn't in the scaffolded response.Ultimately, the loop was skipping the adding of an attribute if the key was
type
, which - in the JSONAPI Spec,type
is used to denote the type of object in the response. Ex: