Repository navigation
Register the API Commons FHIR ruleset - #2
Merged
Merged
Conversation
Adds api-common-fhir — 15 grounded rules for HL7 FHIR R4/R5 RESTful APIs, adoptable by `extends` against the raw URL or via npm. Filed under `industry`: it encodes an HL7 specification, not a hardening posture. `notes` records the two residuals rather than glossing them. It governs the HTTP surface, not resource instances — profile and IG conformance needs StructureDefinitions and terminology servers, so the HL7 validator remains the tool for that. And the resource list is the R4 union R5 union deliberately, which means an R4 API using an R5-only type is not caught. Inserted as text, not re-serialized, so the diff is +20/-0. Validates against rulesets.schema.json; 19 entries. Refs api-commons/api-commons#11. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
kinlane
added a commit
to api-commons/api-commons
that referenced
this pull request
Aug 17, 2026
New repo: api-commons/spectral-fhir-ruleset — 15 grounded rules for HL7 FHIR R4/R5 RESTful APIs, following the OWASP and Problem Details pattern. Registered in Ruleset Commons separately (api-commons/ruleset-commons#2). Refs #11. 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-fhir— 15 grounded rules for HL7 FHIR R4/R5 RESTful APIs.Filed under
industry: it encodes an HL7 specification, not a hardening posture.notesrecords the two residuals rather than glossing them:Validated against a real server: the public HAPI FHIR R4 server's own generated OpenAPI, 2,973 paths, zero false positives on resource types. The 584 findings that remain there are real — HAPI's generated spec doesn't document the ETag/If-Match/409-412 concurrency contract even though the running server implements it.
Inserted as text rather than re-serialized, so the diff is +20 / −0. Validates against
public/rulesets.schema.json; 19 entries.Refs api-commons/api-commons#11.
🤖 Generated with Claude Code