Confluent Schema Registry · API Governance Rules
Confluent Schema Registry API Rules
Spectral linting rules defining API design standards and conventions for Confluent Schema Registry.
10 Rules
error 4
warn 6
Rule Categories
schema
Rules
error
schema-registry-info-contact
API contact information must be present.
$.info
error
schema-registry-info-license
API license must be declared.
$.info
error
schema-registry-server-defined
At least one server URL must be defined.
$.servers
warn
schema-registry-paths-prefix
All paths must live under /subjects, /schemas, /config, /mode, /compatibility, /contexts, or /exporters.
$.paths
error
schema-registry-operation-id
Every operation must define an operationId.
$.paths[*][get,post,put,patch,delete]
warn
schema-registry-operation-tags
Every operation must declare at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
schema-registry-tag-vocabulary
Tags must come from the Schema Registry vocabulary (Subjects, Schemas, Config, Mode, Compatibility, Contexts, Exporters).
$.paths[*][get,post,put,patch,delete].tags[*]
warn
schema-registry-error-shape
Non-2xx responses should reference the ErrorMessage schema.
$.paths[*][get,post,put,patch,delete].responses[?(@property.match(/^[45][0-9][0-9]$/))].content.application/json.schema
warn
schema-registry-content-type
2xx responses should serve application/json (or application/vnd.schemaregistry.v1+json).
$.paths[*][get,post,put,patch,delete].responses[?(@property == '200' || @property == '201')].content
warn
schema-registry-compatibility-enum
Compatibility levels should use canonical values.
$.components.schemas.Config.properties.compatibility