extends: ["spectral:oas"] documentationUrl: https://docs.couchbase.com/cloud/management-api-reference/index.html rules: couchbase-capella-info-title: description: API title must mention Capella. given: "$.info.title" severity: error then: function: pattern functionOptions: match: "Capella" couchbase-capella-server-url: description: Servers must reference cloudapi.cloud.couchbase.com. given: "$.servers[*].url" severity: warn then: function: pattern functionOptions: match: "cloudapi.cloud.couchbase.com" couchbase-capella-operation-id: description: Every operation must define an operationId. given: "$.paths.*.*" severity: error then: field: operationId function: truthy couchbase-capella-operation-tags: description: Every operation must define at least one tag. given: "$.paths.*.*" severity: error then: field: tags function: truthy couchbase-capella-security: description: Capella API operations must declare security requirements. given: "$" severity: warn then: field: security function: truthy