Smithery · API Governance Rules
Smithery API Rules
Spectral linting rules defining API design standards and conventions for Smithery.
8 Rules
error 2
warn 6
Rule Categories
smithery
Rules
error
smithery-operation-ids
All operations must have an operationId
$.paths[*][*]
warn
smithery-operation-tags
All operations must have at least one tag
$.paths[*][*]
warn
smithery-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
error
smithery-bearer-auth
API must define Bearer token authentication
$.components.securitySchemes
warn
smithery-qualified-name-paths
Server paths should use {qualifiedName} parameter for namespace/server identification
$.paths
warn
smithery-error-responses
All operations must define at least a 4xx error response
$.paths[*][post,put,patch,delete]
warn
smithery-no-trailing-slashes
API paths must not have trailing slashes
$.paths
warn
smithery-content-type-json
Request bodies must use application/json content type
$.paths[*][post,put,patch].requestBody.content