Replicate · API Governance Rules
Replicate API Rules
Spectral linting rules defining API design standards and conventions for Replicate.
10 Rules
error 2
warn 6
Rule Categories
replicate
Rules
warn
replicate-operation-id-dot-notation
Replicate operationIds must use dot-notation (e.g. predictions.create, models.versions.list)
$.paths.*.*
error
replicate-operation-id-required
All Replicate operations must have an operationId
$.paths.*[get,post,put,patch,delete]
warn
replicate-summary-title-case
Operation summaries must use Title Case
$.paths.*.*
error
replicate-bearer-auth
Replicate API uses Bearer token authentication
$.components.securitySchemes.*
hint
replicate-paginated-list-response
List operations should return a paginated response with next, previous, and results fields
$.paths.*[get][responses][200][content][application/json][schema][properties]
warn
replicate-path-kebab-case
Path segments must use kebab-case or be path parameters
$.paths
warn
replicate-200-or-204-response
Operations must define at least one 200 or 204 response
$.paths.*[get,post,put,patch,delete][responses]
warn
replicate-tags-title-case
All tags must use Title Case
$.paths.*.*.tags.*
warn
replicate-version-id-string
Version ID parameters must be string type
$.paths.*.*[parameters][?(@.name == 'version_id')]
hint
replicate-cancel-path-convention
Cancel operations must follow the /cancel path convention
$.paths