Debbie Collect · API Governance Rules

Debbie Collect API Rules

Spectral linting rules defining API design standards and conventions for Debbie Collect.

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

Rule Categories

debbie

Rules

warn
debbie-info-contact
API info should include the Debbie API support contact.
$.info
warn
debbie-base-url
Servers should reference debbie.dk.
$.servers[*].url
error
debbie-bearer-auth
API should declare bearer-token authentication.
$.components.securitySchemes
warn
debbie-operation-tags
Operations should be tagged Cases, Creditors, Customers, Webhooks, etc.
$.paths[*][*]
warn
debbie-case-resource-paths
API should expose /cases as a primary resource.
$.paths

Spectral Ruleset

Raw ↑
extends:
  - spectral:oas
rules:
  debbie-info-contact:
    description: API info should include the Debbie API support contact.
    given: $.info
    severity: warn
    then:
      field: contact
      function: truthy
  debbie-base-url:
    description: Servers should reference debbie.dk.
    given: $.servers[*].url
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: "debbie\\.dk"
  debbie-bearer-auth:
    description: API should declare bearer-token authentication.
    given: $.components.securitySchemes
    severity: error
    then:
      field: bearerAuth
      function: truthy
  debbie-operation-tags:
    description: Operations should be tagged Cases, Creditors, Customers, Webhooks, etc.
    given: $.paths[*][*]
    severity: warn
    then:
      field: tags
      function: truthy
  debbie-case-resource-paths:
    description: API should expose /cases as a primary resource.
    given: $.paths
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: "/cases"