Anchore · API Governance Rules

Anchore API Rules

Spectral linting rules defining API design standards and conventions for Anchore.

9 Rules error 4 warn 4
View Rules File View on GitHub

Rule Categories

anchore

Rules

error
anchore-openapi-info-description
OpenAPI info object must have a description
$.info
error
anchore-openapi-info-version
OpenAPI info object must have a version
$.info
error
anchore-operation-operationId
Every operation must have an operationId
$.paths[*][get,post,put,patch,delete]
warn
anchore-operation-summary
Every operation must have a summary
$.paths[*][get,post,put,patch,delete]
warn
anchore-response-200
Every GET operation must have a 200 response
$.paths[*].get.responses
error
anchore-security-defined
API must define security requirements
$
warn
anchore-schema-type
Schema properties must have a type
$.components.schemas[*].properties[*]
warn
anchore-severity-enum
Vulnerability severity must use standard values
$.components.schemas.Vulnerability.properties.severity
hint
anchore-digest-format
Image digest fields should follow SHA256 format
$.components.schemas[*].properties.imageDigest