WatchGuard · API Governance Rules
WatchGuard API Rules
Spectral linting rules defining API design standards and conventions for WatchGuard.
7 Rules
error 3
Rule Categories
wg
Rules
error
wg-dual-security-required
All WatchGuard API operations must declare both bearerAuth and apiKeyAuth security.
$.paths[*][get,post,put,patch,delete]
warning
wg-summary-title-case
Operation summaries must use Title Case.
$.paths[*][*].summary
warning
wg-operation-id-camel-case
WatchGuard API operation IDs must use camelCase.
$.paths[*][*].operationId
error
wg-account-id-required
WatchGuard Cloud API paths with {accountId} must mark it as required.
$.paths[*][*].parameters[?(@.name == 'accountId')]
warning
wg-401-response-required
All WatchGuard API operations must document a 401 Unauthorized response.
$.paths[*][get,post,put,patch,delete].responses
error
wg-https-servers
All WatchGuard API server URLs must use HTTPS.
$.servers[*].url
warning
wg-info-contact
WatchGuard API specs must include a contact object in info.
$.info