SOAX · API Governance Rules
SOAX API Rules
Spectral linting rules defining API design standards and conventions for SOAX.
9 Rules
error 4
warn 5
Rule Categories
soax
Rules
error
soax-api-key-auth
SOAX APIs use API key authentication
$.components.securitySchemes[*]
error
soax-tags-required
All SOAX API operations must have tags
$.paths.*.*
warn
soax-operation-id-camel-case
Operation IDs should use camelCase
$.paths.*.*.operationId
error
soax-path-versioned
All SOAX API paths must include a version prefix
$.paths
warn
soax-request-body-json
POST endpoints should accept JSON
$.paths.*.post.requestBody.content
error
soax-response-200-defined
All operations should define a 200/201 success response
$.paths.*.*
warn
soax-error-401-defined
Authenticated endpoints should define 401 response
$.paths.*.*
warn
soax-package-key-path-param
Package management paths should use package_key parameter
$.paths[*].parameters[?(@.in == 'path')].name
warn
soax-response-schema-defined
Responses should reference a schema
$.paths.*.*.responses.*.content.*.schema