Every requirement, with its section
Each result names the section of the specification, the request that showed it, and what was expected against what came back. No guessing what “non-compliant” means.
Tools · Check · v0.9.1
restep-checkIs your API Restep?Point it at your API root. It reads the discovery document, tries every requirement your server announces, and tells you which ones it meets, which ones it breaks, and where the specification says so.
Node 18 or later · npx restep-check
Each result names the section of the specification, the request that showed it, and what was expected against what came back. No guessing what “non-compliant” means.
By default it only reads: GET, HEAD and a harmless PATCH {}. Writes only with --writes, and only on what it created.
Exit codes that mean something, --json and --junit. A broken MUST fails the build; a SHOULD just warns.
Node 18 or later, no dependencies. npx restep-check and go. It learns your API from its discovery document.
It checks draft 6: the core, query, writes, cache and relations profiles, subcollections and the actions, oauth and inherit extensions, plus discovery and the evolution rules. Each result names its section of the specification, the request that showed it, and what was expected against what came back. A broken MUST is a failure; a broken SHOULD, a warning.
npx restep-check https://api.example.com/ # read only
npx restep-check http://localhost:8080/ --writes # also POST, PATCH, DELETE
npx restep-check https://api.example.com/ -H "Authorization: Bearer $TOKEN"
Node 18 or later, no dependencies. To keep it in a project: npm install --save-dev restep-check.
This is what it says about the reference implementation with two bugs planted on purpose: a 404 with its own code, and a limit clamped in silence instead of rejected.
$ npx restep-check http://localhost:8080/
restep-check 0.9.1 · http://localhost:8080/
Profiles: core, query, writes, cache · extensions: inherit · read only · 103 requests
Every response 10/12 passed
FAIL passive.error.code code comes from the table, the IANA registry or http_NNN
2 of 35 responses: code "missing" for 404, expected not_found (GET /books/restep-check-gr7nyojf → 404); code "missing" for 404, expected not_found (GET /books/restep-check-gr7nyojf?filter[restep_check]=1 → 404)
MUST · §5.4 https://restep.wubytes.com/1/#errors
WARN passive.error.type type is the Restep error URI for the code, another URI or about:blank
2 of 35 responses: type https://w3id.org/restep/1/errors#not_found for code missing (GET /books/restep-check-gr7nyojf → 404); type https://w3id.org/restep/1/errors#not_found for code missing (GET /books/restep-check-gr7nyojf?filter[restep_check]=1 → 404)
SHOULD · §5.4 https://restep.wubytes.com/1/#errors
Discovery 9/9 passed
core 15/18 passed
FAIL core.not-found [books] A missing item gives 404 not_found
code "missing", expected "not_found"
GET /books/restep-check-gr7nyojf → 404
MUST · §5.4 https://restep.wubytes.com/1/#errors
FAIL core.error-order [books] A missing item or an unsupported method is reported before a bad parameter
code "missing", expected "not_found"
GET /books/restep-check-gr7nyojf?filter[restep_check]=1 → 404
MUST · §5.4 https://restep.wubytes.com/1/#errors
SKIP core.item.dates [books] datetime fields are RFC 3339 with an offset; date fields full-date
no field declared as date or datetime
query 19/20 passed
FAIL query.limit.range [books] limit out of range gives invalid_parameter, not a silent clamp
limit=51: got 200, expected 400 invalid_parameter
GET /books?limit=51 → 200
MUST · §6.4 https://restep.wubytes.com/1/#pagination
writes 3/3 passed
Not checked from outside:
· …
4 failed · 1 warning · 56 passed · 1 skipped
Besides the checks it aims at each requirement, every response it receives goes through the checks on every response. So a malformed error turns up even while it was testing something else.
--writesOnly GET and HEAD, plus a PATCH {} to a collection, which has no effect whether the server supports it or not, two CORS preflights (OPTIONS), and a POST and a DELETE with a reserved parameter to each singleton, which are refused without effect. Safe against production, as long as you are allowed to send it about a hundred requests.
--writesIt also creates items, changes them and deletes them: Idempotency-Key, If-Match and its race, Merge Patch, minimal responses. It only touches what it created and removes it at the end, even when something fails. Use a test environment.
To create, it copies an item it read, without id or _ members; if the copy clashes with a unique field (409 conflict), it makes it unique and tries again. If your API needs a different body, give it one or more per collection, used in turn; in their strings, {{n}} becomes a different value on each POST: --fixture 'stations={"code":"RC-{{n}}"}'. A 409 conflict when creating is a skip, not a failure. If a resource requires Idempotency-Key (400) or If-Match (428), it sends them on a retry.
| Option | What it does |
|---|---|
-H, --header "Name: value" | Sends this header on every request. Repeatable |
--writes | Also creates, changes and deletes items, only its own |
--fixture coll=<json|@file> | A valid POST body for that collection. Repeatable: several bodies are used in turn. {{n}} and {{uuid}} in their strings give a value unique to each POST |
--collection name | Only checks that collection. Repeatable |
--path name=/path | Declares a collection when the server has no discovery document |
--max-items n | Stops traversing a collection after n items (500). Filters are only compared when the whole collection fits |
--timeout ms | Per request (10000) |
--json, --junit | Machine-readable output, for CI |
--verbose | Also lists the checks that passed |
--schema discovery|problem <file|url|-> | Instead of an API, validates documents against the JSON Schemas; a discovery document also goes through the rules of the text that need no request (the discovery.* checks, query.filter.lists and query.language.declared), reported apart from the schema |
It exits with 0 when no MUST fails, 1 when one does, and 2 when it cannot run. With --junit, most CI systems show each check as a test.
# .github/workflows/restep.yml (one job)
steps:
- uses: actions/checkout@v4
- run: npm start & sleep 5 # your API, with test data
- run: npx -y restep-check@0.8 http://localhost:8080/ --writes --junit > restep.xml
They come from the conformance section of the specification and from the MUST requirements of sections 3 to 8, 11.5 and 11.6. The § column links to each one.
Run on each response the checker receives, whatever it was testing.
| Check | What it verifies | Level | § |
|---|---|---|---|
passive.json | Every body is valid JSON in UTF-8 | MUST | §3 |
passive.json-type | A 2xx with a body carries Content-Type: application/json (a JSON Schema may use application/schema+json) | MUST | §3 |
passive.error.media-type | 4xx and 5xx bodies use application/problem+json | MUST | §5.4 |
passive.error.members | Errors carry type, title, status (equal to the response’s) and code | MUST | §5.4 |
passive.error.code | code comes from the table, the IANA registry or http_NNN | MUST | §5.4 |
passive.error.type | type is the Restep error URI for the code, another URI or about:blank | SHOULD | §5.4 |
passive.error.401 | A 401 carries WWW-Authenticate | MUST | §5.4 |
passive.error.private | A 401 or a 403 carries Cache-Control with private or no-store | MUST | §5.1 |
passive.error.405 | A 405 carries Allow | MUST | §5.1 |
passive.error.retry-after | 429 and 503 carry Retry-After | SHOULD | §5.4 |
passive.error.request-in-progress | A 409 request_in_progress carries Retry-After | SHOULD | §7.1 |
passive.error.parameter | invalid_parameter and unsupported_parameter name the parameter in parameter | MUST | §5.3 |
passive.error.detail | Errors carry detail | SHOULD | §5.4 |
passive.error.reason | Where discovery declares reasons, every reason is declared, with its code | MUST | §5.4 |
passive.no-error-in-200 | No problem object inside a 2xx | MUST | §5.4 |
passive.profile-link | Responses carry one rel="profile" link, to the version URI, and no other profile link | SHOULD | §4.1 |
passive.links | next and href are absolute paths under the API root, or absolute URIs with https or the root’s scheme | MUST | §3 |
The document at the API root.
| Check | What it verifies | Level | § |
|---|---|---|---|
discovery.present | The API root serves a discovery document | MUST | §4.2 |
discovery.version | restep follows the grammar of 1.1 with major version 1, and version is an integer string | MUST | §1.1 |
discovery.same | The document is the same in two reads and with and without credentials (unless 401 without them); served only with credentials, it is private or no-store | MUST | §4.2 |
discovery.dependencies | No profile or extension without the ones it requires | MUST | §1.2 |
discovery.names | Every name discovery declares (collections, singletons, fields, filters, sort keys, relations, actions, reasons) follows the grammar of names | MUST | §3 |
discovery.members | Members Restep does not define, at the root and in collections and singletons, start with x- | MUST | §4.2 |
discovery.types | Filter types come from the vocabulary; enum carries values | MUST | §4.2 |
discovery.ops | Operators come from the list; boolean only takes eq, ne and null, and the id filter no order operator | MUST | §6.1 |
discovery.sync-id | A synced collection declares id in filter with in | MUST | §10 |
discovery.idempotency-ttl | writes declares idempotency.ttl, at least 86400 | SHOULD | §7.1 |
discovery.deprecations | Each notice has a kind valid where it is, the members its kind needs, an RFC 3339 announced and, if any, an RFC 3339 sunset | MUST | §5.5 |
discovery.reasons | reasons is an object of snake_case reasons, each with a code from the table, the IANA registry or http_NNN | MUST | §5.4 |
discovery.service-doc | The discovery response, or the root’s without one, links the documentation with rel="service-doc" | SHOULD | §4.2 |
discovery.no-underscore-fields | No declared field starts with _ | MUST | §3 |
discovery.describing | methods, descriptions, schemas and action declarations have the right shape | MUST | §4.3 |
discovery.language-maps | language_maps is an object of objects, keyed by top-level fields that are not relations | MUST | §4.2 |
discovery.named-filters | named_filters is an object of objects with a description and, if typed, a type from the vocabulary; no name is a key of filter or has a dot | MUST | §6.1 |
discovery.inherit | inherit appears only where extensions lists it, and gives each effective field an own field and to-one relations declared in relations, none of them id, a relation or a language map | MUST | §11.6 |
discovery.id-from | id_from is server, client or either | MUST | §5.1 |
discovery.collations | collations names string fields of filter or sort, never id, with codepoint or server | MUST | §6.1 |
discovery.subcollections | A collection whose path is a template declares parent, its variables have distinct names, and its path starts with the parent’s path and its last variable | MUST | §4.2 |
discovery.relations | Each relationship declares to with a declared collection (or a list of them), and many and include, if present, as booleans | MUST | §9 |
discovery.actions | Each action declares on (item or collection), safe and idempotent as booleans, and no collection has one named changes | MUST | §11.1 |
discovery.singletons | Each singleton has an absolute path that is not a template nor a path a collection or its items could have, and methods out of GET and PATCH | MUST | §5.9 |
Collections, methods, reserved parameters, errors and writes.
| Check | What it verifies | Level | § |
|---|---|---|---|
core.collection.shape | A collection responds {items, next} with next present | MUST | §5.2 |
core.collection.traversal | Following next until null returns every item once | MUST | §5.2 |
core.collection.deterministic | Two traversals return the same order | MUST | §5.2 |
core.item.id | Every id is a non-empty string of unreserved characters | MUST | §3 |
core.item.get | GET on an item returns it with no envelope | MUST | §5.1 |
core.item.decimal | Decimal fields are strings | MUST | §3 |
core.item.dates | datetime fields are RFC 3339 with an offset; date fields full-date | MUST | §3 |
core.not-found | A missing item gives 404 not_found | MUST | §5.4 |
core.not-found.id-form | The path of an item with its id in another form (a leading zero, another case) gives 404, unless an item has that id | MUST | §3 |
core.subcollection.parent | A subcollection, or an item of it, under a parent item that does not exist gives 404 | MUST | §4.2 |
core.subcollection.delete | Once its parent item is deleted, a subcollection and its items give 404 | MUST | §5.1 |
core.error-order | A missing item or an unsupported method is reported before a bad parameter | MUST | §5.4 |
core.head | HEAD works wherever GET does, with the same status and headers | MUST | §5.1 |
core.method-not-allowed | An unsupported method gives 405 with Allow | MUST | §5.1 |
core.put | PUT on an item gives 405 | MUST | §5.1 |
core.methods.allow | Declared methods and item_methods agree with the Allow of a 405 | MUST | §4.3 |
core.methods.left-out | Where methods or item_methods leaves out GET, GET and HEAD give 405 with an Allow that lists every declared method and not HEAD | MUST | §4.3 |
core.schema.create | A POST without a property the create schema requires gives 422 | MUST | §4.3 |
core.schema.update | A PATCH with a member a closed update schema does not allow gives 422, even when it is null | MUST | §4.3 |
core.status | A declared status answers GET and HEAD with 200 or 503, with Cache-Control: no-store | MUST | §4.4 |
core.private | A GET whose status or body changes with the credentials sent carries Cache-Control with private or no-store | MUST | §5.1 |
core.language.fallback | An Accept-Language not offered, or malformed, gives the same code as none, never 406 or 400 | MUST | §5.6 |
core.language.vary | Discovery and errors whose body changes with Accept-Language carry Vary: Accept-Language and an ETag per language | MUST | §5.6 |
core.language.data | An item gives the same body (and, with writes or cache, ETag) under any Accept-Language | MUST | §3 |
core.language.maps | Each declared language map in an item is an object of strings keyed by well-formed lowercase tags | MUST | §3 |
core.reserved.get | An unimplemented reserved parameter on a collection gives unsupported_parameter | MUST | §5.3 |
core.reserved.item | An unimplemented reserved parameter on an item gives unsupported_parameter | MUST | §5.3 |
core.reserved.forms | A parameter form Restep does not define (filter[a][b][c], fields[], sort[x]) gives unsupported_parameter | MUST | §5.3 |
core.reserved.dollar | A $ parameter gives unsupported_parameter | MUST | §5.3 |
core.reserved.writes | Writes with a reserved parameter give 400 and have no effect | MUST | §5.3 |
core.singleton | Each singleton answers GET and HEAD with a JSON object | MUST | §5.9 |
core.singleton.methods | POST and DELETE on a singleton give 405, with an Allow that agrees with its methods | MUST | §5.9 |
core.singleton.params | include and the other reserved parameters give unsupported_parameter on a singleton; with query, fields works | MUST | §5.9 |
core.singleton.patch | A PATCH {} to a singleton gives 200 with the whole representation and keeps its ETag | MUST | §5.9 |
core.post | POST gives 201 with Location and the created item | MUST | §5.1 |
core.post.id | Where id_from is missing or server, a POST with an id gives 422 invalid with a read_only entry at /id | MUST | §5.1 |
core.post.media-type | A POST with another media type, without Content-Type, with a charset other than UTF-8, or empty without Content-Type gives 415, and empty with application/json 400 bad_request | MUST | §3 |
core.post.charset | A POST with charset=UTF-8 or charset="utf-8" is accepted | MUST | §3 |
core.client-id | Where id_from is client or either, a POST with an id the client chose creates the item at that path | MUST | §5.1 |
core.client-id.required | Where id_from is client, a POST without id gives 422 with a required entry at /id | MUST | §5.1 |
core.client-id.format | Where the client chooses ids, one with a character outside section 3 gives 422 with an entry at /id | MUST | §5.1 |
core.client-id.taken | An id in use, or that of a deleted item, gives 409 conflict with a taken entry at /id and creates nothing | MUST | §5.1 |
core.patch | PATCH with merge-patch+json gives 200 and the whole item | MUST | §5.1 |
core.patch.json | PATCH also accepts application/json | SHOULD | §5.1 |
core.patch.not-object | A patch that is not an object gives 400 bad_request | MUST | §5.1 |
core.patch.id | PATCH with a different id gives 422 invalid with a read_only entry at /id | MUST | §5.1 |
core.patch.underscore | A write ignores members starting with _ | MUST | §5.1 |
core.patch.merge | null deletes a field and absence leaves it untouched (RFC 7396) | MUST | §5.1 |
core.patch.roundtrip | A PATCH with the item's read-only fields as read changes neither its body nor its ETag | MUST | §5.1 |
core.patch.read-only | Another value in a property the item schema marks readOnly gives 422 invalid with a read_only entry, and changes nothing | MUST | §5.1 |
core.relation.unknown | A relationship to an item that does not exist gives 422 invalid with an unknown entry at its id | MUST | §5.1 |
core.relation.replace | A relationship object is replaced whole: only its id is read, and other members are not stored | MUST | §5.1 |
core.relation.href | A link to a subcollection’s item with an href that is not the path of an item of it, or that does not end in the id sent, gives 422 | MUST | §5.1 |
core.415 | A PATCH with another media type, without one or with a charset other than UTF-8 gives 415 | MUST | §5.1 |
core.415.accept-patch | A 415 to a PATCH carries Accept-Patch | SHOULD | §5.1 |
core.delete | DELETE gives 204 and the item is gone | MUST | §5.1 |
core.language.format | A PATCH with an uppercase tag, even set to null, gives 422 with a format entry at /field/TAG | MUST | §3 |
core.language.merge | null deletes one translation and keeps the rest, putting it back restores it, and {"field": null} leaves {} | MUST | §3 |
core.cors.expose | With CORS, a collection GET lists in Access-Control-Expose-Headers the Restep headers it carries (ETag, Link…) | SHOULD | §5.8 |
core.cors.errors | With CORS, a 400 from the same collection also carries Access-Control-Allow-Origin | SHOULD | §5.8 |
core.cors.preflight | A preflight that opens the origin answers 2xx and allows the method and Restep request headers of a POST to the collection and a PATCH to an item | SHOULD | §5.8 |
core.cors.vary | A response whose Access-Control-Allow-Origin repeats the Origin carries Vary: Origin | SHOULD | §5.8 |
core.cors.credentials | Access-Control-Allow-Credentials: true never comes with Access-Control-Allow-Origin: *, and then * covers no header | SHOULD | §5.8 |
Deprecation and retirement, from what discovery lists.
| Check | What it verifies | Level | § |
|---|---|---|---|
evolution.deprecation-header | What is deprecated carries Deprecation and a deprecation link | MUST | §5.5 |
evolution.after-sunset | After its sunset, what is retired responds as 5.5 says | MUST | §5.5 |
evolution.announced | The announced instant of a notice does not change between two reads of discovery | MUST | §5.5 |
evolution.version-links | A version 2 or later links its predecessor | MUST | §5.5 |
Filters, sorting, fields, pagination and counts.
| Check | What it verifies | Level | § |
|---|---|---|---|
query.filter.match | Each declared filter returns exactly the matching items, compared by type | MUST | §6.1 |
query.filter.eq-shorthand | filter[f]=v is the same as filter[f][eq]=v | MUST | §6.1 |
query.filter.and | Several filters combine with AND | MUST | §6.1 |
query.filter.same-field | Two operators on one field are two filters, combined with AND | MUST | §6.1 |
query.filter.absent | No operator but null matches absent or null values | MUST | §6.1 |
query.filter.undeclared | An undeclared field or operator gives unsupported_parameter | MUST | §6.1 |
query.filter.bad-value | A wrong value, an empty in or a repeated filter gives invalid_parameter | MUST | §6.1 |
query.filter.duration-years | A duration with years gives invalid_parameter | MUST | §6.1 |
query.filter.lists | No field holding a list, no path through a to-many relationship and no path to the id of a subcollection’s item is declared in filter or sort | MUST | §6.1 |
query.named-filter.narrows | Each declared named filter answers a collection whose items are all in the unfiltered one | MUST | §6.1 |
query.named-filter.and | A named filter combines with AND with another filter | MUST | §6.1 |
query.named-filter.operator | A named filter with an operator gives unsupported_parameter | MUST | §6.1 |
query.named-filter.bad-value | A switch with a value, a typed named filter without one or with a wrong one, or a repeated one gives invalid_parameter | MUST | §6.1 |
query.plus | A + in the query is a space: filter[f]=a+b gives the same as filter[f]=a%20b | MUST | §5.2 |
query.reencode | next with its parameters percent-encoded another way, or reordered, gives the same page | MUST | §5.2 |
query.limits | An in list of a thousand values gives the full result, invalid_parameter, 413 or 414; never part of it | MUST | §5.3 |
query.sort.order | sort orders by type, strings by code points unless collations says otherwise, with missing values last both ways | MUST | §6.2 |
query.sort.stable | Ties break stably across pages | MUST | §6.2 |
query.sort.undeclared | An undeclared sort key gives unsupported_parameter | MUST | §6.2 |
query.language.declared | No language map, nor a path that ends in or goes through one, is declared in filter or sort | MUST | §6.1 |
query.language.exact | A field.tag filter or sort reads only that key: items without it count as absent | MUST | §6.1 |
query.fields | fields returns only those fields, id and _ members; fields=id is accepted | MUST | §6.3 |
query.fields.unknown | A field that does not exist, or a path into a language map, gives invalid_parameter | MUST | §6.3 |
query.fields.writes | fields or include on a POST or a PATCH gives unsupported_parameter | MUST | §6.3 |
query.limit | limit sets the page size, up to max_limit; without max_limit, limit gives unsupported_parameter | MUST | §6.4 |
query.limit.range | limit out of range gives invalid_parameter, not a silent clamp | MUST | §6.4 |
query.cursor.keeps-params | next carries cursor and keeps the other parameters | MUST | §6.4 |
query.cursor.tampered | A tampered cursor gives invalid_parameter on cursor | MUST | §6.4 |
query.cursor.other-query | A cursor reused with another query gives invalid_parameter on cursor | MUST | §6.4 |
query.cursor.page-params | Changing limit or fields between pages keeps the cursor valid | MUST | §6.4 |
query.count | count=true adds total (and total_estimated when estimated) | MUST | §6.5 |
query.count.false | count=false is the same as leaving it out | MUST | §6.5 |
query.count.undeclared | count=true and count=false without count declared give unsupported_parameter | MUST | §6.5 |
ETags, conditional requests, Idempotency-Key and minimal responses.
| Check | What it verifies | Level | § |
|---|---|---|---|
writes.etag.strong | A full item carries a strong ETag | MUST | §7.2 |
writes.etag.member | Every response whose body is one item (full, with fields, under gzip) carries the item ETag in _etag | MUST | §7.2 |
writes.etag.write | The bodies of a POST and a PATCH carry the item ETag in _etag | MUST | §7.2 |
writes.etag.collection | Collection items that take PATCH or DELETE carry their item ETag in _etag; MUST where the collection declares sync | SHOULD | §7.2 |
writes.if-none-match.write | If-None-Match with the current ETag gives 412 to a write | MUST | §7.2 |
writes.if-match.stale | If-Match with an old ETag gives 412 | MUST | §7.2 |
writes.if-match.list | If-Match with a list holding the current ETag, or *, succeeds | MUST | §7.2 |
writes.if-match.race | Of two simultaneous writes with the same If-Match, one gets 412 | MUST | §7.2 |
writes.if-match.post | If-Match with an invented entity tag on a POST to a collection gives 412 and creates nothing | MUST | §7.2 |
writes.if-match.deleted | PATCH and DELETE with If-Match on an item just deleted give 404, not 412 | MUST | §7.2 |
writes.write-ignores-underscore | A representation read back with _etag can be written | MUST | §7.2 |
writes.idempotency.replay | The same Idempotency-Key returns the same response and creates nothing new | MUST | §7.1 |
writes.idempotency.replayed-header | A replay carries Idempotent-Replayed: true | SHOULD | §7.1 |
writes.idempotency.replay-precondition | A replay returns the stored response even if a precondition no longer holds | MUST | §7.1 |
writes.idempotency.json-equality | Bodies equal as JSON values are the same request | MUST | §7.1 |
writes.idempotency.mismatch | The same key with another body, or with another query, gives 422 idempotency_mismatch | MUST | §7.1 |
writes.idempotency.malformed | A malformed key, or one with parameters, gives 400 bad_request with an entry for the header | MUST | §7.1 |
writes.idempotency.concurrent | Two simultaneous POSTs with the same key and body create one item | MUST | §7.1 |
writes.idempotency.anonymous | Without credentials, a repeated key is replayed or, with idempotency.anonymous false, gets 400 with an entry for the header | MUST | §7.1 |
writes.minimal | A minimal response carries Location and ETag | MUST | §7.3 |
writes.minimal.applied | A minimal response carries Preference-Applied | SHOULD | §7.3 |
Cache-Control, ETags and 304 on reads.
| Check | What it verifies | Level | § |
|---|---|---|---|
cache.cache-control | Every GET or HEAD response, errors included, carries Cache-Control | MUST | §8 |
cache.etag | A GET of a full item or a singleton carries an ETag (with writes, the strong item ETag) | MUST | §8 |
cache.if-none-match | If-None-Match with the current ETag, strong or weak, gives 304 to GET and HEAD | MUST | §8 |
Relationship objects, include, include_depth and dotted fields.
| Check | What it verifies | Level | § |
|---|---|---|---|
relations.objects | Each declared relationship in an item is an object with an id, a list of them or null, with type where it points to several collections and href where its target is a subcollection | MUST | §9 |
relations.href | The href of a relationship to a subcollection is the path of that item, and a GET answers it | MUST | §9 |
relations.include | include on each declared expandable relationship fills its objects with the related item, in the collection and in an item | MUST | §9 |
relations.include.unsupported | include on an undeclared or not expandable relationship, or deeper than include_depth, gives unsupported_parameter | MUST | §9 |
relations.include.depth | Where include_depth is 2 or more, a dotted include fills the related item of the related item | MUST | §9 |
relations.fields | With query, a dotted path in fields gives invalid_parameter without its relationship in include, and with it a projection of the related item | MUST | §9 |
Declared actions: methods, empty bodies, _actions and Idempotency-Key.
| Check | What it verifies | Level | § |
|---|---|---|---|
actions.undeclared | An undeclared action, or a declared one on the other kind of resource, gives 404 not_found | MUST | §11.1 |
actions.method | A declared action with another method gives 405 with an Allow that names its method | MUST | §11.1 |
actions.colon | The colon of an action is also accepted encoded as %3A | MUST | §11.1 |
actions.get | A declared GET action answers GET and HEAD alike, with 200, 201 or 204 | MUST | §11.1 |
actions.listed | Every action in _actions is declared in its collection, on items, with the same method | MUST | §11.1 |
actions.empty-body | A POST action on an item answers an empty body without Content-Type and {} alike | MUST | §11.1 |
actions.response | A POST action that succeeds answers 200 with a JSON object, 201 with Location or 204 | MUST | §11.1 |
actions.idempotency-key | With writes, an action declared idempotent does not reject a request for carrying a well-formed Idempotency-Key | MUST | §11.1 |
The protected resource metadata and the challenges that point to it, without a token.
| Check | What it verifies | Level | § |
|---|---|---|---|
oauth.metadata | The metadata is at the URL RFC 9728 forms from the root, public JSON whose resource is the root, with an authorization server | MUST | §11.5 |
oauth.metadata.recommended | The metadata carries Cache-Control: public with max-age, and scopes_supported | SHOULD | §11.5 |
oauth.challenge | A 401 to the root carries the metadata URL in resource_metadata | MUST | §11.5 |
oauth.challenge.elsewhere | A 401 elsewhere does not point resource_metadata at the root’s metadata | MUST | §11.5 |
Inherited values: effective and own fields, read and written.
| Check | What it verifies | Level | § |
|---|---|---|---|
inherit.read | An item carries its own field and the effective one, equal to the own value when there is one; _inherited, if present, names every inherited field with href, default or hidden, and href points at the item that holds the value | MUST | §11.6 |
inherit.roundtrip | A PATCH with only the effective fields as read, without the own fields, changes neither its body nor its ETag | MUST | §11.6 |
inherit.read-only | Another value in an effective field gives 422 invalid with a read_only entry at its pointer, and changes nothing | MUST | §11.6 |
inherit.own | A value in the own field becomes the effective one; null in it inherits again | MUST | §11.6 |
inherit.post | A POST with an effective field other than the value that would result gives 422 invalid with a read_only entry | MUST | §11.6 |
inherit.fields | With fields, _inherited only names effective fields that are in the response | MUST | §11.6 |
inherit.cycle | A link that would make an item its own ancestor gives 422 invalid | MUST | §11.6 |
inherit.source | Changing the source changes the effective value and the ETag of an item that inherits from it | MUST | §11.6 |
inherit.stale | After the source changes, If-Match with the old ETag gives 412 and the old effective value gives read_only | MUST | §11.6 |
It says so in its output too, so nobody takes them as checked:
Idempotency-Key lasts 24 hours (7.1).GET and HEAD have no visible effects (5.1).429 and 503 leave no effect (5.7); and the Origin check with cookies (5.8).insufficient_scope challenge on a 403: it needs a token without some scope (11.5).sync, subcollections of subcollections and the extensions other than actions, oauth and inherit: they come in a later version.Two JSON Schemas, for the discovery document and for every error. For your tests, your editor and any validator.