Workday Advanced Compensation · API Governance Rules
Workday Advanced Compensation API Rules
Spectral linting rules defining API design standards and conventions for Workday Advanced Compensation.
43 Rules
error 7
warn 25
info 11
Rule Categories
error
no
path
query
schema
servers
wdcomp
Rules
warn
wdcomp-info-contact
$.info
warn
wdcomp-info-version
$.info.version
error
wdcomp-operation-id-required
$.paths[*][get,post,put,patch,delete]
error
wdcomp-operation-summary-required
$.paths[*][get,post,put,patch,delete]
warn
wdcomp-operation-summary-workday-prefix
$.paths[*][get,post,put,patch,delete].summary
warn
wdcomp-operation-description-required
$.paths[*][get,post,put,patch,delete]
warn
wdcomp-operation-tags-required
$.paths[*][get,post,put,patch,delete]
warn
wdcomp-parameter-description-required
$.paths[*][get,post,put,patch,delete].parameters[*]
error
wdcomp-parameter-schema-required
$.paths[*][get,post,put,patch,delete].parameters[*]
error
wdcomp-response-200-required
$.paths[*].get.responses
warn
wdcomp-response-401-required
$.paths[*][get,post,put,patch,delete].responses
warn
wdcomp-response-403-required
$.paths[*][get,post,put,patch,delete].responses
warn
wdcomp-schema-title-required
$.components.schemas[*]
warn
wdcomp-schema-description-required
$.components.schemas[*]
info
wdcomp-schema-properties-description
$.components.schemas[*].properties[*]
error
wdcomp-security-schemes-defined
$.components
warn
wdcomp-operation-security-required
$.paths[*][get,post,put,patch,delete]
error
wdcomp-oauth2-flows-defined
$.components.securitySchemes.oauth2
info
wdcomp-microcks-operation-extension
$.paths[*][get,post,put,patch,delete]
info
wdcomp-microcks-example-default
$.paths[*][get,post,put,patch,delete].responses[*].content[*].examples[*]
info
wdcomp-path-kebab-case
$.paths
warn
wdcomp-schema-pascal-case
$.components.schemas
warn
wdcomp-operation-id-camel-case
$.paths[*][get,post,put,patch,delete].operationId
info
wdcomp-pagination-limit-param
$.paths[*][?(@property === 'get')].parameters[?(@.name === 'limit')]
info
wdcomp-pagination-offset-param
$.paths[*][?(@property === 'get')].parameters[?(@.name === 'offset')]
warn
wdcomp-response-schema-ref
$.paths[*][get,post,put,patch,delete].responses[200,201].content.application/json.schema
warn
wdcomp-server-tenant-variable
$.servers[*].url
info
wdcomp-error-response-schema
$.components.responses[*].content.application/json.schema
warn
wdcomp-tags-global-defined
$.tags
info
wdcomp-examples-provided
$.paths[*][get,post,put,patch,delete].responses[200,201].content.application/json
warn
wdcomp-request-body-description
$.paths[*][post,put,patch].requestBody
warn
wdcomp-request-body-required-flag
$.paths[*][post,put,patch].requestBody
info
wdcomp-compensation-effective-date
$.components.schemas[*].properties
info
wdcomp-compensation-currency-field
$.components.schemas[?(@.properties.basePay || @.properties.budgetAmount || @.properties.minimumPay)].properties
warn
wdcomp-compensation-status-enum
$.components.schemas[*].properties.status
error
servers-https-only
Server URLs must use HTTPS.
$.servers[*].url
warn
servers-expected-domain
Server URLs should be on the workday.com domain.
$.servers[*].url
warn
path-params-casing
Path parameters should be camelCase (the dominant convention in this API).
$.paths[*].parameters[?(@.in=='path')].name
warn
query-params-casing
Query parameters should be snake_case (the dominant convention in this API).
$.paths[*][get,post,put,patch,delete].parameters[?(@.in=='query')]
warn
schema-names-casing
Component schema names should be PascalCase (the dominant convention in this API).
$.components.schemas
info
schema-properties-casing
Schema properties should be snake_case (the dominant convention in this API).
$.components.schemas[*].properties
warn
error-schema-defined
A shared error schema (ErrorResponse) should be defined for error payloads.
$.components.schemas
warn
no-empty-descriptions
Descriptions must not be empty strings.
$..description