Dapr · API Governance Rules
Dapr API Rules
Spectral linting rules defining API design standards and conventions for Dapr.
5 Rules
error 1
warn 4
Rule Categories
dapr
Rules
warn
dapr-info-contact
API info should provide a contact for the Dapr project.
$.info
warn
dapr-server-prefix
Servers should use the /v1.0 path prefix used by Dapr building blocks.
$.servers[*].url
warn
dapr-store-name-path-param
State, secrets, and configuration paths must be parameterised by storeName.
$.paths
error
dapr-operation-tags
Every operation must be tagged with its building block.
$.paths[*][*]
warn
dapr-cloudevent-content-type
Pub/sub publish endpoints should accept application/cloudevents+json.
$.paths[*].post.requestBody.content