Unisys · API Governance Rules
Unisys API Rules
Spectral linting rules defining API design standards and conventions for Unisys.
30 Rules
error 13
warn 14
info 3
Rule Categories
components
get
info
isolation
no
openapi
operation
parameter
paths
request
response
schema
security
servers
stealth
Rules
error
info-title-required
$.info
warn
info-title-contains-unisys
$.info.title
warn
info-description-required
$.info
error
info-version-required
$.info
error
openapi-version-3
$
error
servers-defined
$
error
servers-https-only
$.servers[*].url
warn
paths-no-trailing-slash
$.paths[*]~
info
stealth-paths-use-api-prefix
$.paths[*]~
error
operation-id-required
$.paths[*][get,post,put,patch,delete,head,options]
warn
operation-id-camel-case
$.paths[*][get,post,put,patch,delete,head,options].operationId
error
operation-summary-required
$.paths[*][get,post,put,patch,delete,head,options]
warn
operation-summary-title-case
$.paths[*][get,post,put,patch,delete,head,options].summary
warn
operation-description-required
$.paths[*][get,post,put,patch,delete,head,options]
warn
operation-tags-required
$.paths[*][get,post,put,patch,delete,head,options]
warn
parameter-description-required
$.paths[*][get,post,put,patch,delete].parameters[*]
error
parameter-schema-required
$.paths[*][get,post,put,patch,delete].parameters[*]
warn
request-body-description
$.paths[*][post,put,patch].requestBody
error
response-success-defined
$.paths[*][get,post,put,patch,delete]
error
response-description-required
$.paths[*][get,post,put,patch,delete].responses[*]
warn
response-401-unauthorized
$.paths[*][get,post,put,patch,delete]
info
response-400-bad-request
$.paths[*][post,put,patch]
error
security-schemes-defined
$.components
warn
security-basic-auth
$.components.securitySchemes[*]
error
get-no-request-body
$.paths[*].get
info
isolation-uses-post
$.paths[?(@property =~ /isolate|unisolate/)][*]
warn
schema-property-camel-case
$.components.schemas[*].properties[*]~
warn
schema-description-required
$.components.schemas[*]
warn
no-empty-descriptions
$..description
error
components-schemas-defined
$.components