Amazon Directory Service · API Governance Rules
Amazon Directory Service API Rules
Spectral linting rules defining API design standards and conventions for Amazon Directory Service.
18 Rules
error 11
warn 4
info 3
Rule Categories
external
get
info
no
openapi
operation
post
response
schema
servers
Rules
warn
info-title-prefix
API title should include "Directory"
$.info.title
error
info-description-required
API must have a description
$.info
error
info-version-required
API must have a version
$.info
error
openapi-version-3
Must use OpenAPI 3.x
$
error
servers-defined
At least one server must be defined
$
error
servers-https-only
All server URLs must use HTTPS
$.servers[*].url
error
operation-summary-required
All operations must have a summary
$.paths[*][get,post,put,delete,patch]
warn
operation-description-required
All operations must have a description
$.paths[*][get,post,put,delete,patch]
error
operation-id-required
All operations must have an operationId
$.paths[*][get,post,put,delete,patch]
warn
operation-id-pascal-case
OperationIds should use PascalCase (AWS Directory Service convention)
$.paths[*][get,post,put,delete,patch].operationId
warn
operation-tags-required
All operations must have at least one tag
$.paths[*][get,post,put,delete,patch]
info
post-should-have-request-body
POST operations should have a request body
$.paths[*].post
error
response-success-required
Operations must have at least one 2xx response
$.paths[*][get,post,put,delete,patch].responses
error
response-description-required
All responses must have a description
$.paths[*][get,post,put,delete,patch].responses[*]
info
schema-description-required
Top-level schemas should have descriptions
$.components.schemas[*]
error
get-no-request-body
GET operations must not have a request body
$.paths[*].get
error
no-empty-descriptions
Descriptions must not be empty strings
$..description
info
external-docs-encouraged
API should reference external documentation
$