Leonardo.AI · API Governance Rules
Leonardo.AI API Rules
Spectral linting rules defining API design standards and conventions for Leonardo.AI.
9 Rules
error 4
warn 4
Rule Categories
bearer
id
no
operation
resource
server
tag
Rules
error
operation-id-pattern
Leonardo.AI uses lowerCamelCase operationIds (e.g. createGeneration, getGenerationById).
$.paths.*[get,post,put,delete,patch].operationId
warn
resource-path-kebab-or-camel
Leonardo.AI paths use kebab-case segments and lowerCamelCase parameter names (e.g. /init-image, /platformModels, /generations-image-to-video).
$.paths
error
tag-required
Every operation must declare at least one tag.
$.paths.*[get,post,put,delete,patch]
error
bearer-security
Leonardo.AI requires HTTP bearer authentication on every operation.
$
warn
operation-summary-required
Every operation should have a non-empty summary.
$.paths.*[get,post,put,delete,patch]
warn
operation-summary-title-case
Operation summaries should use Title Case.
$.paths.*[get,post,put,delete,patch].summary
error
no-trailing-slash
Leonardo.AI paths do not end with a trailing slash.
$.paths
hint
id-path-uuid
Path parameters named {id} are UUIDs and should declare format: uuid where present.
$.paths.*.parameters[?(@.in=='path' && @.name=='id')].schema
warn
server-leonardo
The canonical Leonardo.AI server URL is https://cloud.leonardo.ai/api/rest/v1.
$.servers[*].url