Microsoft Azure API Management · API Governance Rules
Microsoft Azure API Management API Rules
Spectral linting rules defining API design standards and conventions for Microsoft Azure API Management.
15 Rules
error 1
warn 6
info 8
Rule Categories
azure
Rules
warn
azure-operation-id-format
Operation IDs must follow the {Resource}_{Action} pattern (e.g., Api_Get, ApiManagementService_CreateOrUpdate).
$.paths[*][get,put,post,patch,delete,head].operationId
warn
azure-operation-description
Every operation must have a description.
$.paths[*][get,put,post,patch,delete,head]
warn
azure-operation-summary
Every operation must have a summary.
$.paths[*][get,put,post,patch,delete,head]
warn
azure-operation-tags
Every operation must have at least one tag.
$.paths[*][get,put,post,patch,delete,head]
info
azure-arm-path-pattern
Paths should follow Azure Resource Manager conventions, starting with /subscriptions or /providers.
$.paths
warn
azure-provider-namespace
Resource provider paths must use a Microsoft.* namespace (e.g., Microsoft.ApiManagement).
$.paths
info
azure-auth-scheme-defined
The API should define an azure_auth OAuth2 security scheme.
$.components.securitySchemes
info
azure-global-security
The API should have global security referencing azure_auth.
$
info
azure-error-response
Operations should include a default error response for consistent error handling.
$.paths[*][get,put,post,patch,delete,head].responses
warn
azure-response-description
Success responses must have a description.
$.paths[*][get,put,post,patch,delete,head].responses.200
error
azure-api-version-info
The API info object must specify a version.
$.info
info
azure-management-server
ARM APIs should use https://management.azure.com as the server URL.
$.servers[*].url
info
azure-operationid-tag-consistency
The operation ID prefix (before underscore) should align with the operation tag for consistency.
$.paths[*][get,put,post,patch,delete,head]
info
azure-contact-info
API info should include contact information.
$.info
info
azure-license-info
API info should include license information.
$.info