Amazon SageMaker · API Governance Rules
Amazon SageMaker API Rules
Spectral linting rules defining API design standards and conventions for Amazon SageMaker.
23 Rules
error 10
warn 11
info 2
Rule Categories
delete
get
info
microcks
no
openapi
operation
parameter
request
response
schema
security
servers
Rules
error
info-title-required
Info title must be present and start with "Amazon SageMaker"
$.info
warn
info-description-required
Info description must be present with at least 30 characters
$.info
error
info-version-required
Info version must be present
$.info
error
openapi-version-3
Must use OpenAPI 3.x
$
error
servers-required
Servers must be defined
$
error
servers-https-only
Server URLs must use HTTPS
$.servers[*]
error
operation-summary-required
Every operation must have a summary
$.paths[*][get,post,put,patch,delete]
warn
operation-summary-amazon-prefix
Operation summaries must start with "Amazon SageMaker"
$.paths[*][get,post,put,patch,delete].summary
warn
operation-description-required
Every operation must have a description
$.paths[*][get,post,put,patch,delete]
error
operation-id-required
Every operation must have an operationId
$.paths[*][get,post,put,patch,delete]
warn
operation-id-pascal-case
operationId must use PascalCase (SageMaker convention)
$.paths[*][get,post,put,patch,delete].operationId
warn
operation-tags-required
Every operation must have at least one tag
$.paths[*][get,post,put,patch,delete]
warn
parameter-description-required
Every parameter must have a description
$.paths[*][get,post,put,patch,delete].parameters[*]
error
request-body-content-required
Request bodies must define content
$.paths[*][post,put,patch].requestBody
error
response-success-required
Every operation must have a 200 or 2xx response
$.paths[*][get,post,put,patch,delete].responses
warn
response-description-required
Every response must have a description
$.paths[*][get,post,put,patch,delete].responses[*]
warn
schema-type-required
Schema properties should have a type defined
$.components.schemas[*].properties[*]
info
schema-description-required
Top-level component schemas must have a description
$.components.schemas[*]
warn
security-schemes-defined
Security schemes should be defined in components
$
error
get-no-request-body
GET operations must not have a request body
$.paths[*].get
warn
delete-no-request-body
DELETE operations should not have a request body
$.paths[*].delete
warn
no-empty-descriptions
Descriptions must not be empty strings
$..description
info
microcks-operation-present
Operations should have x-microcks-operation for mock support
$.paths[*][get,post,put,patch,delete]