Golioth · API Governance Rules
Golioth API Rules
Spectral linting rules defining API design standards and conventions for Golioth.
7 Rules
warn 5
Rule Categories
golioth
Rules
warn
golioth-summary-title-case
Operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary
hint
golioth-summary-prefix
Operation summaries used in the API Evangelist catalog must begin with 'Golioth '
$.paths[*][get,post,put,patch,delete].summary
warn
golioth-security-scheme
Operations must reference the x-api-key security scheme
$.components.securitySchemes
warn
golioth-versioned-paths
Management API paths must be prefixed with /v1
$.paths[*]~
hint
golioth-project-scope
Project-scoped resources must include the {projectId} segment
$.paths[?(@property.startsWith('/v1/projects/'))]
warn
golioth-success-response
Every operation should declare a 200 or 201 response
$.paths[*][get,post,put,patch,delete].responses
warn
golioth-operation-tagged
Operations should have at least one tag
$.paths[*][get,post,put,patch,delete]