Restep2½

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

A terminal running restep-check: two checks pass, one fails on limit, and a summary line counts them. $ npx restep-check api/ PASScore.collection.shape PASSquery.cursor.tampered FAILquery.limit.range limit=51: got 200 PASSwrites.etag.strong 1 failed · 52 passed

Why use it

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.

Safe against production

By default it only reads: GET, HEAD and a harmless PATCH {}. Writes only with --writes, and only on what it created.

Made for CI

Exit codes that mean something, --json and --junit. A broken MUST fails the build; a SHOULD just warns.

No setup

Node 18 or later, no dependencies. npx restep-check and go. It learns your API from its discovery document.

Run it

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.

Read only, or with --writes

By default

Only 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.

With --writes

It 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.

Options

OptionWhat it does
-H, --header "Name: value"Sends this header on every request. Repeatable
--writesAlso 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 nameOnly checks that collection. Repeatable
--path name=/pathDeclares a collection when the server has no discovery document
--max-items nStops traversing a collection after n items (500). Filters are only compared when the whole collection fits
--timeout msPer request (10000)
--json, --junitMachine-readable output, for CI
--verboseAlso 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

In CI

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

The 192 checks

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.

On every response 17

Run on each response the checker receives, whatever it was testing.

CheckWhat it verifiesLevel§
passive.jsonEvery body is valid JSON in UTF-8MUST§3
passive.json-typeA 2xx with a body carries Content-Type: application/json (a JSON Schema may use application/schema+json)MUST§3
passive.error.media-type4xx and 5xx bodies use application/problem+jsonMUST§5.4
passive.error.membersErrors carry type, title, status (equal to the response’s) and codeMUST§5.4
passive.error.codecode comes from the table, the IANA registry or http_NNNMUST§5.4
passive.error.typetype is the Restep error URI for the code, another URI or about:blankSHOULD§5.4
passive.error.401A 401 carries WWW-AuthenticateMUST§5.4
passive.error.privateA 401 or a 403 carries Cache-Control with private or no-storeMUST§5.1
passive.error.405A 405 carries AllowMUST§5.1
passive.error.retry-after429 and 503 carry Retry-AfterSHOULD§5.4
passive.error.request-in-progressA 409 request_in_progress carries Retry-AfterSHOULD§7.1
passive.error.parameterinvalid_parameter and unsupported_parameter name the parameter in parameterMUST§5.3
passive.error.detailErrors carry detailSHOULD§5.4
passive.error.reasonWhere discovery declares reasons, every reason is declared, with its codeMUST§5.4
passive.no-error-in-200No problem object inside a 2xxMUST§5.4
passive.profile-linkResponses carry one rel="profile" link, to the version URI, and no other profile linkSHOULD§4.1
passive.linksnext and href are absolute paths under the API root, or absolute URIs with https or the root’s schemeMUST§3

Discovery 24

The document at the API root.

CheckWhat it verifiesLevel§
discovery.presentThe API root serves a discovery documentMUST§4.2
discovery.versionrestep follows the grammar of 1.1 with major version 1, and version is an integer stringMUST§1.1
discovery.sameThe 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-storeMUST§4.2
discovery.dependenciesNo profile or extension without the ones it requiresMUST§1.2
discovery.namesEvery name discovery declares (collections, singletons, fields, filters, sort keys, relations, actions, reasons) follows the grammar of namesMUST§3
discovery.membersMembers Restep does not define, at the root and in collections and singletons, start with x-MUST§4.2
discovery.typesFilter types come from the vocabulary; enum carries valuesMUST§4.2
discovery.opsOperators come from the list; boolean only takes eq, ne and null, and the id filter no order operatorMUST§6.1
discovery.sync-idA synced collection declares id in filter with inMUST§10
discovery.idempotency-ttlwrites declares idempotency.ttl, at least 86400SHOULD§7.1
discovery.deprecationsEach notice has a kind valid where it is, the members its kind needs, an RFC 3339 announced and, if any, an RFC 3339 sunsetMUST§5.5
discovery.reasonsreasons is an object of snake_case reasons, each with a code from the table, the IANA registry or http_NNNMUST§5.4
discovery.service-docThe discovery response, or the root’s without one, links the documentation with rel="service-doc"SHOULD§4.2
discovery.no-underscore-fieldsNo declared field starts with _MUST§3
discovery.describingmethods, descriptions, schemas and action declarations have the right shapeMUST§4.3
discovery.language-mapslanguage_maps is an object of objects, keyed by top-level fields that are not relationsMUST§4.2
discovery.named-filtersnamed_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 dotMUST§6.1
discovery.inheritinherit 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 mapMUST§11.6
discovery.id-fromid_from is server, client or eitherMUST§5.1
discovery.collationscollations names string fields of filter or sort, never id, with codepoint or serverMUST§6.1
discovery.subcollectionsA 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 variableMUST§4.2
discovery.relationsEach relationship declares to with a declared collection (or a list of them), and many and include, if present, as booleansMUST§9
discovery.actionsEach action declares on (item or collection), safe and idempotent as booleans, and no collection has one named changesMUST§11.1
discovery.singletonsEach 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 PATCHMUST§5.9

core 63

Collections, methods, reserved parameters, errors and writes.

CheckWhat it verifiesLevel§
core.collection.shapeA collection responds {items, next} with next presentMUST§5.2
core.collection.traversalFollowing next until null returns every item onceMUST§5.2
core.collection.deterministicTwo traversals return the same orderMUST§5.2
core.item.idEvery id is a non-empty string of unreserved charactersMUST§3
core.item.getGET on an item returns it with no envelopeMUST§5.1
core.item.decimalDecimal fields are stringsMUST§3
core.item.datesdatetime fields are RFC 3339 with an offset; date fields full-dateMUST§3
core.not-foundA missing item gives 404 not_foundMUST§5.4
core.not-found.id-formThe path of an item with its id in another form (a leading zero, another case) gives 404, unless an item has that idMUST§3
core.subcollection.parentA subcollection, or an item of it, under a parent item that does not exist gives 404MUST§4.2
core.subcollection.deleteOnce its parent item is deleted, a subcollection and its items give 404MUST§5.1
core.error-orderA missing item or an unsupported method is reported before a bad parameterMUST§5.4
core.headHEAD works wherever GET does, with the same status and headersMUST§5.1
core.method-not-allowedAn unsupported method gives 405 with AllowMUST§5.1
core.putPUT on an item gives 405MUST§5.1
core.methods.allowDeclared methods and item_methods agree with the Allow of a 405MUST§4.3
core.methods.left-outWhere methods or item_methods leaves out GET, GET and HEAD give 405 with an Allow that lists every declared method and not HEADMUST§4.3
core.schema.createA POST without a property the create schema requires gives 422MUST§4.3
core.schema.updateA PATCH with a member a closed update schema does not allow gives 422, even when it is nullMUST§4.3
core.statusA declared status answers GET and HEAD with 200 or 503, with Cache-Control: no-storeMUST§4.4
core.privateA GET whose status or body changes with the credentials sent carries Cache-Control with private or no-storeMUST§5.1
core.language.fallbackAn Accept-Language not offered, or malformed, gives the same code as none, never 406 or 400MUST§5.6
core.language.varyDiscovery and errors whose body changes with Accept-Language carry Vary: Accept-Language and an ETag per languageMUST§5.6
core.language.dataAn item gives the same body (and, with writes or cache, ETag) under any Accept-LanguageMUST§3
core.language.mapsEach declared language map in an item is an object of strings keyed by well-formed lowercase tagsMUST§3
core.reserved.getAn unimplemented reserved parameter on a collection gives unsupported_parameterMUST§5.3
core.reserved.itemAn unimplemented reserved parameter on an item gives unsupported_parameterMUST§5.3
core.reserved.formsA parameter form Restep does not define (filter[a][b][c], fields[], sort[x]) gives unsupported_parameterMUST§5.3
core.reserved.dollarA $ parameter gives unsupported_parameterMUST§5.3
core.reserved.writesWrites with a reserved parameter give 400 and have no effectMUST§5.3
core.singletonEach singleton answers GET and HEAD with a JSON objectMUST§5.9
core.singleton.methodsPOST and DELETE on a singleton give 405, with an Allow that agrees with its methodsMUST§5.9
core.singleton.paramsinclude and the other reserved parameters give unsupported_parameter on a singleton; with query, fields worksMUST§5.9
core.singleton.patchA PATCH {} to a singleton gives 200 with the whole representation and keeps its ETagMUST§5.9
core.postPOST gives 201 with Location and the created itemMUST§5.1
core.post.idWhere id_from is missing or server, a POST with an id gives 422 invalid with a read_only entry at /idMUST§5.1
core.post.media-typeA 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_requestMUST§3
core.post.charsetA POST with charset=UTF-8 or charset="utf-8" is acceptedMUST§3
core.client-idWhere id_from is client or either, a POST with an id the client chose creates the item at that pathMUST§5.1
core.client-id.requiredWhere id_from is client, a POST without id gives 422 with a required entry at /idMUST§5.1
core.client-id.formatWhere the client chooses ids, one with a character outside section 3 gives 422 with an entry at /idMUST§5.1
core.client-id.takenAn id in use, or that of a deleted item, gives 409 conflict with a taken entry at /id and creates nothingMUST§5.1
core.patchPATCH with merge-patch+json gives 200 and the whole itemMUST§5.1
core.patch.jsonPATCH also accepts application/jsonSHOULD§5.1
core.patch.not-objectA patch that is not an object gives 400 bad_requestMUST§5.1
core.patch.idPATCH with a different id gives 422 invalid with a read_only entry at /idMUST§5.1
core.patch.underscoreA write ignores members starting with _MUST§5.1
core.patch.mergenull deletes a field and absence leaves it untouched (RFC 7396)MUST§5.1
core.patch.roundtripA PATCH with the item's read-only fields as read changes neither its body nor its ETagMUST§5.1
core.patch.read-onlyAnother value in a property the item schema marks readOnly gives 422 invalid with a read_only entry, and changes nothingMUST§5.1
core.relation.unknownA relationship to an item that does not exist gives 422 invalid with an unknown entry at its idMUST§5.1
core.relation.replaceA relationship object is replaced whole: only its id is read, and other members are not storedMUST§5.1
core.relation.hrefA 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 422MUST§5.1
core.415A PATCH with another media type, without one or with a charset other than UTF-8 gives 415MUST§5.1
core.415.accept-patchA 415 to a PATCH carries Accept-PatchSHOULD§5.1
core.deleteDELETE gives 204 and the item is goneMUST§5.1
core.language.formatA PATCH with an uppercase tag, even set to null, gives 422 with a format entry at /field/TAGMUST§3
core.language.mergenull deletes one translation and keeps the rest, putting it back restores it, and {"field": null} leaves {}MUST§3
core.cors.exposeWith CORS, a collection GET lists in Access-Control-Expose-Headers the Restep headers it carries (ETag, Link…)SHOULD§5.8
core.cors.errorsWith CORS, a 400 from the same collection also carries Access-Control-Allow-OriginSHOULD§5.8
core.cors.preflightA 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 itemSHOULD§5.8
core.cors.varyA response whose Access-Control-Allow-Origin repeats the Origin carries Vary: OriginSHOULD§5.8
core.cors.credentialsAccess-Control-Allow-Credentials: true never comes with Access-Control-Allow-Origin: *, and then * covers no headerSHOULD§5.8

Evolution 4

Deprecation and retirement, from what discovery lists.

CheckWhat it verifiesLevel§
evolution.deprecation-headerWhat is deprecated carries Deprecation and a deprecation linkMUST§5.5
evolution.after-sunsetAfter its sunset, what is retired responds as 5.5 saysMUST§5.5
evolution.announcedThe announced instant of a notice does not change between two reads of discoveryMUST§5.5
evolution.version-linksA version 2 or later links its predecessorMUST§5.5

query 33

Filters, sorting, fields, pagination and counts.

CheckWhat it verifiesLevel§
query.filter.matchEach declared filter returns exactly the matching items, compared by typeMUST§6.1
query.filter.eq-shorthandfilter[f]=v is the same as filter[f][eq]=vMUST§6.1
query.filter.andSeveral filters combine with ANDMUST§6.1
query.filter.same-fieldTwo operators on one field are two filters, combined with ANDMUST§6.1
query.filter.absentNo operator but null matches absent or null valuesMUST§6.1
query.filter.undeclaredAn undeclared field or operator gives unsupported_parameterMUST§6.1
query.filter.bad-valueA wrong value, an empty in or a repeated filter gives invalid_parameterMUST§6.1
query.filter.duration-yearsA duration with years gives invalid_parameterMUST§6.1
query.filter.listsNo 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 sortMUST§6.1
query.named-filter.narrowsEach declared named filter answers a collection whose items are all in the unfiltered oneMUST§6.1
query.named-filter.andA named filter combines with AND with another filterMUST§6.1
query.named-filter.operatorA named filter with an operator gives unsupported_parameterMUST§6.1
query.named-filter.bad-valueA switch with a value, a typed named filter without one or with a wrong one, or a repeated one gives invalid_parameterMUST§6.1
query.plusA + in the query is a space: filter[f]=a+b gives the same as filter[f]=a%20bMUST§5.2
query.reencodenext with its parameters percent-encoded another way, or reordered, gives the same pageMUST§5.2
query.limitsAn in list of a thousand values gives the full result, invalid_parameter, 413 or 414; never part of itMUST§5.3
query.sort.ordersort orders by type, strings by code points unless collations says otherwise, with missing values last both waysMUST§6.2
query.sort.stableTies break stably across pagesMUST§6.2
query.sort.undeclaredAn undeclared sort key gives unsupported_parameterMUST§6.2
query.language.declaredNo language map, nor a path that ends in or goes through one, is declared in filter or sortMUST§6.1
query.language.exactA field.tag filter or sort reads only that key: items without it count as absentMUST§6.1
query.fieldsfields returns only those fields, id and _ members; fields=id is acceptedMUST§6.3
query.fields.unknownA field that does not exist, or a path into a language map, gives invalid_parameterMUST§6.3
query.fields.writesfields or include on a POST or a PATCH gives unsupported_parameterMUST§6.3
query.limitlimit sets the page size, up to max_limit; without max_limit, limit gives unsupported_parameterMUST§6.4
query.limit.rangelimit out of range gives invalid_parameter, not a silent clampMUST§6.4
query.cursor.keeps-paramsnext carries cursor and keeps the other parametersMUST§6.4
query.cursor.tamperedA tampered cursor gives invalid_parameter on cursorMUST§6.4
query.cursor.other-queryA cursor reused with another query gives invalid_parameter on cursorMUST§6.4
query.cursor.page-paramsChanging limit or fields between pages keeps the cursor validMUST§6.4
query.countcount=true adds total (and total_estimated when estimated)MUST§6.5
query.count.falsecount=false is the same as leaving it outMUST§6.5
query.count.undeclaredcount=true and count=false without count declared give unsupported_parameterMUST§6.5

writes 21

ETags, conditional requests, Idempotency-Key and minimal responses.

CheckWhat it verifiesLevel§
writes.etag.strongA full item carries a strong ETagMUST§7.2
writes.etag.memberEvery response whose body is one item (full, with fields, under gzip) carries the item ETag in _etagMUST§7.2
writes.etag.writeThe bodies of a POST and a PATCH carry the item ETag in _etagMUST§7.2
writes.etag.collectionCollection items that take PATCH or DELETE carry their item ETag in _etag; MUST where the collection declares syncSHOULD§7.2
writes.if-none-match.writeIf-None-Match with the current ETag gives 412 to a writeMUST§7.2
writes.if-match.staleIf-Match with an old ETag gives 412MUST§7.2
writes.if-match.listIf-Match with a list holding the current ETag, or *, succeedsMUST§7.2
writes.if-match.raceOf two simultaneous writes with the same If-Match, one gets 412MUST§7.2
writes.if-match.postIf-Match with an invented entity tag on a POST to a collection gives 412 and creates nothingMUST§7.2
writes.if-match.deletedPATCH and DELETE with If-Match on an item just deleted give 404, not 412MUST§7.2
writes.write-ignores-underscoreA representation read back with _etag can be writtenMUST§7.2
writes.idempotency.replayThe same Idempotency-Key returns the same response and creates nothing newMUST§7.1
writes.idempotency.replayed-headerA replay carries Idempotent-Replayed: trueSHOULD§7.1
writes.idempotency.replay-preconditionA replay returns the stored response even if a precondition no longer holdsMUST§7.1
writes.idempotency.json-equalityBodies equal as JSON values are the same requestMUST§7.1
writes.idempotency.mismatchThe same key with another body, or with another query, gives 422 idempotency_mismatchMUST§7.1
writes.idempotency.malformedA malformed key, or one with parameters, gives 400 bad_request with an entry for the headerMUST§7.1
writes.idempotency.concurrentTwo simultaneous POSTs with the same key and body create one itemMUST§7.1
writes.idempotency.anonymousWithout credentials, a repeated key is replayed or, with idempotency.anonymous false, gets 400 with an entry for the headerMUST§7.1
writes.minimalA minimal response carries Location and ETagMUST§7.3
writes.minimal.appliedA minimal response carries Preference-AppliedSHOULD§7.3

cache 3

Cache-Control, ETags and 304 on reads.

CheckWhat it verifiesLevel§
cache.cache-controlEvery GET or HEAD response, errors included, carries Cache-ControlMUST§8
cache.etagA GET of a full item or a singleton carries an ETag (with writes, the strong item ETag)MUST§8
cache.if-none-matchIf-None-Match with the current ETag, strong or weak, gives 304 to GET and HEADMUST§8

relations 6

Relationship objects, include, include_depth and dotted fields.

CheckWhat it verifiesLevel§
relations.objectsEach 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 subcollectionMUST§9
relations.hrefThe href of a relationship to a subcollection is the path of that item, and a GET answers itMUST§9
relations.includeinclude on each declared expandable relationship fills its objects with the related item, in the collection and in an itemMUST§9
relations.include.unsupportedinclude on an undeclared or not expandable relationship, or deeper than include_depth, gives unsupported_parameterMUST§9
relations.include.depthWhere include_depth is 2 or more, a dotted include fills the related item of the related itemMUST§9
relations.fieldsWith query, a dotted path in fields gives invalid_parameter without its relationship in include, and with it a projection of the related itemMUST§9

actions 8

Declared actions: methods, empty bodies, _actions and Idempotency-Key.

CheckWhat it verifiesLevel§
actions.undeclaredAn undeclared action, or a declared one on the other kind of resource, gives 404 not_foundMUST§11.1
actions.methodA declared action with another method gives 405 with an Allow that names its methodMUST§11.1
actions.colonThe colon of an action is also accepted encoded as %3AMUST§11.1
actions.getA declared GET action answers GET and HEAD alike, with 200, 201 or 204MUST§11.1
actions.listedEvery action in _actions is declared in its collection, on items, with the same methodMUST§11.1
actions.empty-bodyA POST action on an item answers an empty body without Content-Type and {} alikeMUST§11.1
actions.responseA POST action that succeeds answers 200 with a JSON object, 201 with Location or 204MUST§11.1
actions.idempotency-keyWith writes, an action declared idempotent does not reject a request for carrying a well-formed Idempotency-KeyMUST§11.1

oauth 4

The protected resource metadata and the challenges that point to it, without a token.

CheckWhat it verifiesLevel§
oauth.metadataThe metadata is at the URL RFC 9728 forms from the root, public JSON whose resource is the root, with an authorization serverMUST§11.5
oauth.metadata.recommendedThe metadata carries Cache-Control: public with max-age, and scopes_supportedSHOULD§11.5
oauth.challengeA 401 to the root carries the metadata URL in resource_metadataMUST§11.5
oauth.challenge.elsewhereA 401 elsewhere does not point resource_metadata at the root’s metadataMUST§11.5

inherit 9

Inherited values: effective and own fields, read and written.

CheckWhat it verifiesLevel§
inherit.readAn 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 valueMUST§11.6
inherit.roundtripA PATCH with only the effective fields as read, without the own fields, changes neither its body nor its ETagMUST§11.6
inherit.read-onlyAnother value in an effective field gives 422 invalid with a read_only entry at its pointer, and changes nothingMUST§11.6
inherit.ownA value in the own field becomes the effective one; null in it inherits againMUST§11.6
inherit.postA POST with an effective field other than the value that would result gives 422 invalid with a read_only entryMUST§11.6
inherit.fieldsWith fields, _inherited only names effective fields that are in the responseMUST§11.6
inherit.cycleA link that would make an item its own ancestor gives 422 invalidMUST§11.6
inherit.sourceChanging the source changes the effective value and the ETag of an item that inherits from itMUST§11.6
inherit.staleAfter the source changes, If-Match with the old ETag gives 412 and the old effective value gives read_onlyMUST§11.6

What it cannot check from outside

It says so in its output too, so nobody takes them as checked:

  • Atomicity when the server fails between the effect and storing the response (7.1).
  • That an Idempotency-Key lasts 24 hours (7.1).
  • That GET and HEAD have no visible effects (5.1).
  • What needs two principals, such as a cursor bound to the one that received it (6.4) or fields one of them cannot read (6.1); that 429 and 503 leave no effect (5.7); and the Origin check with cookies (5.8).
  • The insufficient_scope challenge on a 403: it needs a token without some scope (11.5).
  • Edge values your data does not have: filters are tried with the values already in the collection.
  • sync, subcollections of subcollections and the extensions other than actions, oauth and inherit: they come in a later version.

All the tools