DINUM (Direction interministérielle du numérique) · API Governance Rules
DINUM (Direction interministérielle du numérique) API Rules
Spectral linting rules defining API design standards and conventions for DINUM (Direction interministérielle du numérique).
29 Rules
error 17
warn 10
info 2
Rules by declared severity: the level each rule assigns to a violation. These are not lint results.
Generated by API Evangelist
Written by API Evangelist tooling for DINUM (Direction interministérielle du numérique)'s APIs. It is a starting point, not a ruleset DINUM (Direction interministérielle du numérique) publishes or enforces.
Rule Categories
info
operation
operationid
parameter
path
response
tag
Rules
error
operation-has-operationid
Every operation declares an operationId (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete]
warn
operationid-casing-snake
operationIds are snake case (measured: 97% of this contract)
$.paths[*][get,post,put,patch,delete].operationId
info
operation-has-summary
Every operation has a summary (measured: 84% of this contract)
$.paths[*][get,post,put,patch,delete]
error
operation-has-tags
Every operation is tagged (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete]
warn
operation-has-success-response
Every operation declares a 2xx response (measured: 90% of this contract)
$.paths[*][get,post,put,patch,delete].responses
warn
path-segment-casing-snake
Path segments are snake case (measured: 94% of this contract)
$.paths[*]~
error
path-params-in-braces
Path parameters use {braces}, not :colon (measured: 100% of this contract)
$.paths[*]~
error
info-has-description
The contract's info block carries a description (measured: 100% of this contract)
$.info
error
info-title-present
Info declares title (measured: 100% of this contract)
$.info
error
info-description-present
Info declares description (measured: 100% of this contract)
$.info
error
info-version-present
Info declares version (measured: 100% of this contract)
$.info
error
info-version-semver
info.version is numeric (measured: 100% of this contract)
$.info.version
error
tag-name-present
Tag declares name (measured: 100% of this contract)
$.tags[*]
error
tag-name-casing-snake
Tag.name is snake case (measured: 100% of this contract)
$.tags[*].name
warn
tag-description-present
Tag declares description (measured: 96% of this contract)
$.tags[*]
warn
tag-description-min-length
Tag.description runs at least 17 characters (measured: 96% of this contract)
$.tags[*].description
error
operation-tags-present
Operation declares tags (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
info
operation-summary-present
Operation declares summary (measured: 84% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
warn
operation-summary-min-length
Operation.summary runs at least 17 characters (measured: 95% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].summary
warn
operation-description-min-length
Operation.description runs at least 56 characters (measured: 95% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].description
error
operation-operationid-present
Operation declares operationId (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
warn
operation-operationid-casing-snake
Operation.operationId is snake case (measured: 97% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].operationId
error
operation-responses-present
Operation declares responses (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
error
parameter-name-present
Parameter declares name (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
error
parameter-in-present
Parameter declares in (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
warn
parameter-in-values
Parameter.in is one of body, formData, header, query (measured: 98% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*].in
warn
parameter-description-min-length
Parameter.description runs at least 16 characters (measured: 99% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*].description
error
response-description-present
Response declares description (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*]
error
response-description-min-length
Response.description runs at least 7 characters (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*].description
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.