Moesif · API Governance Rules
Moesif API Rules
Spectral linting rules defining API design standards and conventions for Moesif.
10 Rules
error 3
warn 7
Rule Categories
moesif
Rules
error
moesif-security-required
Every operation MUST declare security; the Moesif Management API is authenticated via Bearer token.
#AllOperations
error
moesif-operation-id-camel-case
operationId values MUST be lowerCamelCase per the Moesif Management API conventions.
$.paths[*][get,post,put,patch,delete].operationId
warn
moesif-operation-summary-title-case
Operation summaries SHOULD use Title Case.
$.paths[*][get,post,put,patch,delete].summary
warn
moesif-tag-title-case
All tags SHOULD be Title Case.
$.tags[*].name
warn
moesif-path-prefix
Paths in the Moesif Management API begin with one of the documented prefixes (/search/~, /~, /workspaces, /catalog, /governance, /metrics, /billing, /chat).
$.paths
warn
moesif-response-401
Authenticated operations MUST document a 401 response.
$.paths[*][get,post,put,patch,delete].responses
warn
moesif-response-429
Operations SHOULD document a 429 Too Many Requests response because Moesif enforces tier-based rate limits.
$.paths[*][get,post,put,patch,delete].responses
warn
moesif-schema-pascal-case
Component schemas SHOULD be PascalCase.
$.components.schemas
error
moesif-info-contact
Info block MUST include a contact for support.
$.info
warn
moesif-info-license
Info block SHOULD include a license.
$.info