@@ -58,33 +58,33 @@ Example supported requests
5858| -----------------------| ----------------------------------------------------------------------------------------------------| ----------| ---------------------------------------|
5959| schema | oneOf (success, failure, info) | |
6060| success | data, included, meta, links, jsonapi | | AM::SerializableResource
61- | success.meta | meta | | AM::S ::Adapter::Base#meta
62- | success.included | UniqueArray(resource) | | AM::S ::Adapter::JsonApi#serializable_hash_for_collection
61+ | success.meta | meta | | AMS ::Adapter::Base#meta
62+ | success.included | UniqueArray(resource) | | AMS ::Adapter::JsonApi#serializable_hash_for_collection
6363| success.data | data | |
64- | success.links | allOf (links, pagination) | | AM::S ::Adapter::JsonApi#links_for
64+ | success.links | allOf (links, pagination) | | AMS ::Adapter::JsonApi#links_for
6565| success.jsonapi | jsonapi | |
66- | failure | errors, meta, jsonapi | errors |
67- | failure.errors | UniqueArray(error) | | #1004
68- | meta | Object | |
69- | data | oneOf (resource, UniqueArray(resource)) | | AM::S ::Adapter::JsonApi#serializable_hash_for_collection,#serializable_hash_for_single_resource
66+ | failure | errors, meta, jsonapi | errors | AMS::Adapter::JsonApi#failure_document, # 1004
67+ | failure.errors | UniqueArray(error) | | AM::S::ErrorSerializer, #1004
68+ | meta | Object | |
69+ | data | oneOf (resource, UniqueArray(resource)) | | AMS ::Adapter::JsonApi#serializable_hash_for_collection,#serializable_hash_for_single_resource
7070| resource | String(type), String(id),<br >attributes, relationships,<br >links, meta | type, id | AM::S::Adapter::JsonApi#primary_data_for
7171| links | Uri(self), Link(related) | | #1028 , #1246 , #1282
7272| link | oneOf (linkString, linkObject) | |
7373| link.linkString | Uri | |
7474| link.linkObject | Uri(href), meta | href |
75- | attributes | patternProperties(<br >` "^(?!relationships$|links$)\\w[-\\w_]*$" ` ),<br >any valid JSON | | AM::Serializer#attributes, AM::S ::Adapter::JsonApi#resource_object_for
76- | relationships | patternProperties(<br >` "^\\w[-\\w_]*$" ` );<br >links, relationships.data, meta | | AM::S ::Adapter::JsonApi#relationships_for
77- | relationships.data | oneOf (relationshipToOne, relationshipToMany) | | AM::S ::Adapter::JsonApi#resource_identifier_for
75+ | attributes | patternProperties(<br >` "^(?!relationships$|links$)\\w[-\\w_]*$" ` ),<br >any valid JSON | | AM::Serializer#attributes, AMS ::Adapter::JsonApi#resource_object_for
76+ | relationships | patternProperties(<br >` "^\\w[-\\w_]*$" ` );<br >links, relationships.data, meta | | AMS ::Adapter::JsonApi#relationships_for
77+ | relationships.data | oneOf (relationshipToOne, relationshipToMany) | | AMS ::Adapter::JsonApi#resource_identifier_for
7878| relationshipToOne | anyOf(empty, linkage) | |
7979| relationshipToMany | UniqueArray(linkage) | |
8080| empty | null | |
81- | linkage | String(type), String(id), meta | type, id | AM::S ::Adapter::JsonApi#primary_data_for
82- | pagination | pageObject(first), pageObject(last),<br >pageObject(prev), pageObject(next) | | AM::S ::Adapter::JsonApi::PaginationLinks#serializable_hash
81+ | linkage | String(type), String(id), meta | type, id | AMS ::Adapter::JsonApi#primary_data_for
82+ | pagination | pageObject(first), pageObject(last),<br >pageObject(prev), pageObject(next) | | AMS ::Adapter::JsonApi::PaginationLinks#serializable_hash
8383| pagination.pageObject | oneOf(Uri, null) | |
84- | jsonapi | String(version), meta | | AM::S:: Adapter::JsonApi::ApiObjects::JsonApi
85- | error | String(id), links, String(status),<br >String(code), String(title),<br >String(detail), error.source, meta | |
86- | error.source | String(pointer), String(parameter) | |
87- | pointer | [ JSON Pointer RFC6901] ( https://tools.ietf.org/html/rfc6901 ) | |
84+ | jsonapi | String(version), meta | | AMS:: Adapter::JsonApi::ApiObjects::JsonApi#as_json
85+ | error | String(id), links, String(status),<br >String(code), String(title),<br >String(detail), error.source, meta | | AM::S::ErrorSerializer, AMS::Adapter::JsonApi::Error.resource_errors
86+ | error.source | String(pointer), String(parameter) | | AMS::Adapter::JsonApi::Error.error_source
87+ | pointer | [ JSON Pointer RFC6901] ( https://tools.ietf.org/html/rfc6901 ) | | AMS::JsonPointer
8888
8989
9090The [ http://jsonapi.org/schema ] ( schema/schema.json ) makes a nice roadmap.
@@ -102,7 +102,7 @@ The [http://jsonapi.org/schema](schema/schema.json) makes a nice roadmap.
102102### Failure Document
103103
104104- [ ] failure
105- - [ ] errors: array of unique items of type ` "$ref": "#/definitions/error" `
105+ - [x ] errors: array of unique items of type ` "$ref": "#/definitions/error" `
106106 - [ ] meta: ` "$ref": "#/definitions/meta" `
107107 - [ ] jsonapi: ` "$ref": "#/definitions/jsonapi" `
108108
@@ -137,4 +137,15 @@ The [http://jsonapi.org/schema](schema/schema.json) makes a nice roadmap.
137137 - [ ] pagination
138138 - [ ] jsonapi
139139 - [ ] meta
140- - [ ] error: id, links, status, code, title: detail: source [ {pointer, type}, {parameter: {description, type}] , meta
140+ - [ ] error
141+ - [ ] id: a unique identifier for this particular occurrence of the problem.
142+ - [ ] links: a links object containing the following members:
143+ - [ ] about: a link that leads to further details about this particular occurrence of the problem.
144+ - [ ] status: the HTTP status code applicable to this problem, expressed as a string value.
145+ - [ ] code: an application-specific error code, expressed as a string value.
146+ - [ ] title: a short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
147+ - [x] detail: a human-readable explanation specific to this occurrence of the problem.
148+ - [x] source: an object containing references to the source of the error, optionally including any of the following members:
149+ - [x] pointer: a JSON Pointer [ RFC6901] ( https://tools.ietf.org/html/rfc6901 ) to the associated entity in the request document [ e.g. "/data" for a primary data object, or "/data/attributes/title" for a specific attribute] .
150+ - [x] parameter: a string indicating which query parameter caused the error.
151+ - [ ] meta: a meta object containing non-standard meta-information about the error.
0 commit comments