Livepeer · API Governance Rules
Livepeer API Rules
Spectral linting rules defining API design standards and conventions for Livepeer.
8 Rules
error 2
warn 4
info 2
Rule Categories
livepeer
Rules
warn
livepeer-ai-operation-id-gen-prefix
AI pipeline operationIds must start with 'gen' (e.g. genTextToImage)
$.paths.*.post
warn
livepeer-ai-path-kebab-case
AI pipeline paths must use kebab-case
$.paths
warn
livepeer-ai-tags-required
AI pipeline operations should be tagged 'generate'
$.paths.*.post
info
livepeer-ai-pipeline-is-post
AI pipeline operations are POST (text-to-image, image-to-video, etc.)
$.paths[?(@property.match(/^\/(text-to-image|image-to-image|image-to-video|upscale|audio-to-text|segment-anything-2|llm|image-to-text|live-video-to-video|text-to-speech)$/))]
info
livepeer-ai-http-error-schema
AI Runner errors should reference HTTPError schema
$.components.schemas
error
livepeer-ai-server-required
AI specs must declare a server (dream-gateway.livepeer.cloud or livepeer.studio)
$
error
livepeer-ai-server-https
Servers must use HTTPS
$.servers[*].url
warn
livepeer-ai-operation-summary
Every AI pipeline operation needs a summary
$.paths.*[get,post]