Red Hat Ansible Automation Platform · API Governance Rules
Red Hat Ansible Automation Platform API Rules
Spectral linting rules defining API design standards and conventions for Red Hat Ansible Automation Platform.
59 Rules
error 35
warn 11
info 13
Rules by declared severity: the level each rule assigns to a violation. These are not lint results.
Generated by API Evangelist
Written by API Evangelist tooling for Red Hat Ansible Automation Platform's APIs. It is a starting point, not a ruleset Red Hat Ansible Automation Platform publishes or enforces.
Rule Categories
contact
info
license
mediatype
oauthflow
operation
operationid
parameter
path
property
requestbody
response
schema
securityscheme
server
tag
write
Rules
error
operation-has-operationid
Every operation declares an operationId (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete]
info
operationid-casing-snake
operationIds are snake case (measured: 83% of this contract)
$.paths[*][get,post,put,patch,delete].operationId
error
operation-has-summary
Every operation has a summary (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete]
error
operation-has-tags
Every operation is tagged (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete]
error
operation-has-success-response
Every operation declares a 2xx response (measured: 99% of this contract)
$.paths[*][get,post,put,patch,delete].responses
info
path-segment-casing-kebab
Path segments are kebab case (measured: 87% of this contract)
$.paths[*]~
error
path-params-in-braces
Path parameters use {braces}, not :colon (measured: 100% of this contract)
$.paths[*]~
info
write-declares-request-body
POST and PUT declare a request body (measured: 86% of this contract)
$.paths[*][post,put]
warn
response-media-type
Responses are served as application/json (measured: 99% of this contract)
$.paths[*][get,post,put,patch,delete].responses[*].content
warn
property-name-casing-snake
Schema property names are snake case (measured: 94% of this contract)
$.components.schemas[*].properties[*]~
warn
info-has-description
The contract's info block carries a description (measured: 97% of this contract)
$.info
info
info-has-contact-or-terms
The contract's info block names a contact or terms of service (measured: 82% of this contract)
$.info
error
info-title-present
Info declares title (measured: 100% of this contract)
$.info
warn
info-title-min-length
Info.title runs at least 19 characters (measured: 95% of this contract)
$.info.title
warn
info-description-present
Info declares description (measured: 97% of this contract)
$.info
error
info-description-min-length
Info.description runs at least 15 characters (measured: 100% of this contract)
$.info.description
info
info-contact-present
Info declares contact (measured: 82% of this contract)
$.info
info
info-license-present
Info declares license (measured: 82% of this contract)
$.info
error
info-version-present
Info declares version (measured: 100% of this contract)
$.info
error
info-version-semver
info.version is numeric (measured: 100% of this contract)
$.info.version
info
contact-name-present
Contact declares name (measured: 85% of this contract)
$.info.contact
info
contact-url-present
Contact declares url (measured: 85% of this contract)
$.info.contact
error
contact-url-https
Contact.url is https (measured: 100% of this contract)
$.info.contact.url
error
contact-email-present
Contact declares email (measured: 100% of this contract)
$.info.contact
error
license-name-present
License declares name (measured: 100% of this contract)
$.info.license
info
license-url-present
License declares url (measured: 85% of this contract)
$.info.license
error
license-url-https
License.url is https (measured: 100% of this contract)
$.info.license.url
error
server-url-present
Server declares url (measured: 100% of this contract)
$.servers[*]
error
server-description-min-length
Server.description runs at least 38 characters (measured: 100% of this contract)
$.servers[*].description
error
tag-name-present
Tag declares name (measured: 100% of this contract)
$.tags[*]
error
operation-tags-present
Operation declares tags (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
error
operation-summary-present
Operation declares summary (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
warn
operation-summary-min-length
Operation.summary runs at least 11 characters (measured: 95% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].summary
warn
operation-description-min-length
Operation.description runs at least 19 characters (measured: 96% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].description
error
operation-operationid-present
Operation declares operationId (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
info
operation-operationid-casing-snake
Operation.operationId is snake case (measured: 83% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].operationId
info
operation-parameters-present
Operation declares parameters (measured: 83% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
error
operation-responses-present
Operation declares responses (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
error
parameter-name-present
Parameter declares name (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
error
parameter-in-present
Parameter declares in (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
error
parameter-in-values
Parameter.in is one of path, query (measured: 99% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*].in
info
parameter-description-present
Parameter declares description (measured: 82% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
warn
parameter-description-min-length
Parameter.description runs at least 17 characters (measured: 95% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*].description
error
parameter-style-values
Parameter.style is one of form (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*].style
error
parameter-schema-present
Parameter declares schema (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
error
requestbody-content-present
RequestBody declares content (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].requestBody
info
requestbody-required-present
RequestBody declares required (measured: 87% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].requestBody
error
mediatype-schema-present
MediaType declares schema (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*].content[*]
error
response-description-present
Response declares description (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*]
error
schema-type-present
Schema declares type (measured: 99% of this contract)
$.components.schemas[*]
warn
schema-type-values
Schema.type is one of object (measured: 98% of this contract)
$.components.schemas[*].type
warn
schema-description-min-length
Schema.description runs at least 27 characters (measured: 95% of this contract)
$.components.schemas[*].description
warn
schema-properties-present
Schema declares properties (measured: 97% of this contract)
$.components.schemas[*]
error
securityscheme-type-present
SecurityScheme declares type (measured: 100% of this contract)
$.components.securitySchemes[*]
error
securityscheme-type-values
SecurityScheme.type is one of apiKey, http, oauth2 (measured: 100% of this contract)
$.components.securitySchemes[*].type
error
securityscheme-in-values
SecurityScheme.in is one of cookie, header (measured: 100% of this contract)
$.components.securitySchemes[*].in
error
securityscheme-scheme-values
SecurityScheme.scheme is one of basic (measured: 100% of this contract)
$.components.securitySchemes[*].scheme
error
oauthflow-tokenurl-present
OAuthFlow declares tokenUrl (measured: 100% of this contract)
$.components.securitySchemes[*].flows[*]
error
oauthflow-scopes-present
OAuthFlow declares scopes (measured: 100% of this contract)
$.components.securitySchemes[*].flows[*]
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.