Repository navigation
Register the API Commons Problem Details ruleset - #1
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
api-common-problem-detailsto the registry — the new grounded Spectral ruleset for RFC 9457, Problem Details for HTTP APIs.Filed under
industryrather thansecurity: it encodes an IETF specification, not a hardening posture.Both residuals are recorded in
notesrather than glossed over — it does not check that a problem'sstatusmatches the response's HTTP status code (not expressible with Spectral's built-in functions), and it does not flagurn: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 ajson.dumpround-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