Strimzi · API Governance Rules
Strimzi API Rules
Spectral linting rules defining API design standards and conventions for Strimzi.
8 Rules
error 1
warn 4
info 3
Rule Categories
strimzi
Rules
warn
strimzi-operation-ids-camel-case
Strimzi Kafka Bridge operationIds use camelCase (e.g., send, createConsumer, poll, commit).
$.paths[*][*].operationId
warn
strimzi-tags-title-case
All OpenAPI tags must use Title Case (e.g., 'Producer', 'Consumer', 'Topics', 'Seek').
$.tags[*].name
info
strimzi-kafka-content-type
Strimzi Kafka Bridge uses Kafka-specific content types for producer and consumer endpoints. The content type format is: application/vnd.kafka.{format}.v2+json or application/vnd.kafka.v2+json.
$.paths['/topics/{topicname}'][post].requestBody.content
warn
strimzi-consumer-group-path-param
Consumer group endpoints must use 'groupid' as the path parameter for the consumer group identifier.
$.paths['/consumers/{groupid}'][*].parameters[*].name
info
strimzi-delete-returns-204
DELETE operations return 204 No Content on success in the Kafka Bridge.
$.paths[*][delete].responses
warn
strimzi-health-endpoints-documented
The Kafka Bridge must document /healthy and /ready endpoints for Kubernetes liveness and readiness probes.
$.paths
error
strimzi-operation-summaries-present
All operations must have a summary.
$.paths[*][get,post,put,patch,delete]
info
strimzi-topic-name-path-param
Topic endpoints use 'topicname' as the path parameter name for consistency across Kafka Bridge endpoints.
$.paths['/topics/{topicname}'][*].parameters[*].name