Skip to content

Register the API Commons Problem Details ruleset - #1

Merged
kinlane merged 1 commit into
mainfrom
register-problem-details
Aug 17, 2026
Merged

kinlane merged 1 commit into
mainfrom
register-problem-details

Conversation

@kinlane

@kinlane kinlane commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Adds api-common-problem-details to the registry — the new grounded Spectral ruleset for RFC 9457, Problem Details for HTTP APIs.

Filed under industry rather than security: it encodes an IETF specification, not a hardening posture.

Both residuals are recorded in notes rather than glossed over — it does not check that a problem's status matches the response's HTTP status code (not expressible with Spectral's built-in functions), and it does not flag urn:ietf:rfc:7807 (RFC 9457 Appendix B retained that XML namespace). A registry whose whole job is provenance should say what an entry doesn't cover.

Two notes on the diff

Inserted as text, not re-serialized. This file uses compact inline arrays ("artifactTypes": ["openapi"]) and a json.dump round-trip reflows all 17 existing entries — 75 insertions / 17 deletions for a one-entry addition. The diff here is +20 / −0.

Validated against public/rulesets.schema.json. 18 entries.

Refs api-commons/api-commons#9.

🤖 Generated with Claude Code

Adds api-common-problem-details to the registry — a grounded Spectral ruleset
for RFC 9457, Problem Details for HTTP APIs, adoptable by `extends` against the
raw URL or via npm.

Filed under `industry` rather than `security`: it encodes an IETF specification,
not a hardening posture.

Both residuals are recorded in `notes` rather than glossed. It does not check
that a problem's `status` matches the response's HTTP status code (not
expressible with built-in functions), and it does not flag urn:ietf:rfc:7807
(RFC 9457 Appendix B retained that XML namespace). A registry whose job is
provenance should say what an entry does not cover.

Inserted as text rather than re-serialized — this file uses compact inline
arrays and a json.dump round-trip reflows every entry. Validates against
rulesets.schema.json; 18 entries.

Refs api-commons/api-commons#9.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant