Debezium · API Governance Rules

Debezium API Rules

Spectral linting rules defining API design standards and conventions for Debezium.

5 Rules error 1 warn 4
View Rules File View on GitHub

Rule Categories

debezium

Rules

warn
debezium-info-license
API info should include the Apache 2.0 license used by Debezium.
$.info
warn
debezium-connect-base-url
Servers should reference a Kafka Connect worker (default port 8083).
$.servers[*].url
error
debezium-connectors-resource
API should expose /connectors as a primary resource path.
$.paths
warn
debezium-connector-tasks
Connector resources should expose tasks management.
$.paths
warn
debezium-operation-tags
Operations should be tagged Connectors, Tasks, Cluster, or Topics.
$.paths[*][*]

Spectral Ruleset

Raw ↑
extends:
  - spectral:oas
rules:
  debezium-info-license:
    description: API info should include the Apache 2.0 license used by Debezium.
    given: $.info
    severity: warn
    then:
      field: license
      function: truthy
  debezium-connect-base-url:
    description: Servers should reference a Kafka Connect worker (default port 8083).
    given: $.servers[*].url
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: "8083"
  debezium-connectors-resource:
    description: API should expose /connectors as a primary resource path.
    given: $.paths
    severity: error
    then:
      function: pattern
      functionOptions:
        match: "/connectors"
  debezium-connector-tasks:
    description: Connector resources should expose tasks management.
    given: $.paths
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: "/tasks"
  debezium-operation-tags:
    description: Operations should be tagged Connectors, Tasks, Cluster, or Topics.
    given: $.paths[*][*]
    severity: warn
    then:
      field: tags
      function: truthy