Microsoft Azure · API Governance Rules
Microsoft Azure API Rules
Spectral linting rules defining API design standards and conventions for Microsoft Azure.
67 Rules
error 28
warn 25
info 14
Generated by API Evangelist
Written by API Evangelist tooling for Microsoft Azure's APIs. It is a starting point, not a ruleset Microsoft Azure publishes or enforces.
Rule Categories
contact
header
info
license
mediatype
oauthflow
operation
operationid
parameter
path
property
requestbody
response
schema
securityscheme
server
servers
tag
Rules
error
operation-has-operationid
Every operation declares an operationId (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete]
warn
operationid-casing-camel
operationIds are camel case (measured: 99% 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-description
Every operation has a description (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-camel
Path segments are camel case (measured: 80% of this contract)
$.paths[*]~
warn
path-no-trailing-slash
Paths carry no trailing slash (measured: 99% of this contract)
$.paths[*]~
warn
path-params-in-braces
Path parameters use {braces}, not :colon (measured: 97% of this contract)
$.paths[*]~
warn
servers-https
Servers are https (measured: 93% of this contract)
$.servers[*].url
warn
response-media-type
Responses are served as application/json (measured: 99% of this contract)
$.paths[*][get,post,put,patch,delete].responses[*].content
warn
schema-has-description
Every component schema carries a title or description (measured: 91% of this contract)
$.components.schemas[*]
warn
property-name-casing-camel
Schema property names are camel case (measured: 96% of this contract)
$.components.schemas[*].properties[*]~
info
info-has-description
The contract's info block carries a description (measured: 81% 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 28 characters (measured: 95% of this contract)
$.info.title
info
info-description-present
Info declares description (measured: 81% of this contract)
$.info
warn
info-description-min-length
Info.description runs at least 25 characters (measured: 95% of this contract)
$.info.description
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
warn
contact-name-present
Contact declares name (measured: 95% of this contract)
$.info.contact
error
contact-url-https
Contact.url is https (measured: 100% of this contract)
$.info.contact.url
error
license-name-present
License declares name (measured: 100% 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[*]
warn
server-url-https
Server.url is https (measured: 93% of this contract)
$.servers[*].url
error
server-description-min-length
Server.description runs at least 24 characters (measured: 100% of this contract)
$.servers[*].description
error
tag-name-present
Tag declares name (measured: 100% of this contract)
$.tags[*]
info
tag-name-casing-pascal
Tag.name is pascal case (measured: 80% of this contract)
$.tags[*].name
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 35 characters (measured: 95% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].summary
error
operation-description-present
Operation declares description (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
warn
operation-description-min-length
Operation.description runs at least 22 characters (measured: 95% 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]
warn
operation-operationid-casing-camel
Operation.operationId is camel case (measured: 99% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].operationId
warn
operation-parameters-present
Operation declares parameters (measured: 98% 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]
info
parameter-name-casing-camel
Parameter.name is camel case (measured: 83% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*].name
warn
parameter-description-present
Parameter declares description (measured: 97% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
warn
parameter-description-min-length
Parameter.description runs at least 13 characters (measured: 95% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*].description
info
parameter-required-present
Parameter declares required (measured: 88% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
warn
parameter-style-values
Parameter.style is one of form (measured: 99% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*].style
warn
requestbody-description-present
RequestBody declares description (measured: 92% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].requestBody
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: 88% 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[*]
warn
response-description-min-length
Response.description runs at least 2 characters (measured: 98% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*].description
info
response-content-present
Response declares content (measured: 80% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*]
info
header-description-present
Header declares description (measured: 86% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*].headers[*]
error
header-schema-present
Header declares schema (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*].headers[*]
info
schema-type-present
Schema declares type (measured: 83% of this contract)
$.components.schemas[*]
warn
schema-type-values
Schema.type is one of object, string (measured: 98% of this contract)
$.components.schemas[*].type
info
schema-description-present
Schema declares description (measured: 88% of this contract)
$.components.schemas[*]
warn
schema-description-min-length
Schema.description runs at least 16 characters (measured: 95% of this contract)
$.components.schemas[*].description
warn
schema-format-values
Schema.format is one of arm-id, date-time, int32, int64, uuid (measured: 93% of this contract)
$.components.schemas[*].format
info
schema-properties-present
Schema declares properties (measured: 85% of this contract)
$.components.schemas[*]
error
securityscheme-type-present
SecurityScheme declares type (measured: 100% of this contract)
$.components.securitySchemes[*]
warn
securityscheme-type-values
SecurityScheme.type is one of apiKey, oauth2 (measured: 99% of this contract)
$.components.securitySchemes[*].type
info
securityscheme-description-present
SecurityScheme declares description (measured: 84% of this contract)
$.components.securitySchemes[*]
error
securityscheme-in-values
SecurityScheme.in is one of header, query (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
info
securityscheme-flows-present
SecurityScheme declares flows (measured: 80% of this contract)
$.components.securitySchemes[*]
warn
oauthflow-authorizationurl-present
OAuthFlow declares authorizationUrl (measured: 98% of this contract)
$.components.securitySchemes[*].flows[*]
error
oauthflow-authorizationurl-https
OAuthFlow.authorizationUrl is https (measured: 100% of this contract)
$.components.securitySchemes[*].flows[*].authorizationUrl
error
oauthflow-tokenurl-https
OAuthFlow.tokenUrl is https (measured: 100% of this contract)
$.components.securitySchemes[*].flows[*].tokenUrl
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.