CometAPI · API Governance Rules
CometAPI API Rules
Spectral linting rules defining API design standards and conventions for CometAPI.
9 Rules
error 4
warn 3
info 2
Rule Categories
cometapi
Rules
error
cometapi-info-contact
API info must include a contact block.
$.info
error
cometapi-server-https
Server URLs must use HTTPS.
$.servers[*].url
warn
cometapi-server-host
Public server URL should point to api.cometapi.com.
$.servers[*].url
info
cometapi-versioned-base-path
Server URL should include /v1 to match OpenAI compatibility.
$.servers[*].url
error
cometapi-bearer-security
API must define a bearer-token security scheme.
$.components.securitySchemes[*]
error
cometapi-operation-id
Every operation must declare a unique operationId.
$.paths[*][get,post,put,patch,delete]
warn
cometapi-operation-tags
Operations must declare at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
cometapi-error-responses
Mutating operations should declare 401 and 429 error responses.
$.paths[*][post].responses
info
cometapi-model-field
Generative endpoints must accept a `model` request field for routing.
$.paths[*][post].requestBody.content['application/json'].schema.properties