Upwork · API Governance Rules
Upwork API Rules
Spectral linting rules defining API design standards and conventions for Upwork.
21 Rules
error 13
warn 8
Rule Categories
get
info
no
openapi
operation
parameter
response
schema
security
servers
Rules
warn
info-title-upwork-prefix
API title must start with "Upwork"
$.info.title
error
info-description-required
API must have a description
$.info
error
info-version-required
API must define a version
$.info
error
openapi-version-3
Specs must use OpenAPI 3.x
$
error
servers-defined
API must define servers
$
error
servers-https-only
Server URLs must use HTTPS
$.servers[*].url
error
operation-summary-required
Every operation must have a summary
$.paths[*][get,post,put,patch,delete]
warn
operation-summary-upwork-prefix
Summaries must start with "Upwork"
$.paths[*][get,post,put,patch,delete].summary
error
operation-id-required
Every operation must have an operationId
$.paths[*][get,post,put,patch,delete]
warn
operation-id-camel-case
operationId should use camelCase
$.paths[*][get,post,put,patch,delete].operationId
error
operation-tags-required
Operations must have tags
$.paths[*][get,post,put,patch,delete]
warn
operation-description-required
Operations must have descriptions
$.paths[*][get,post,put,patch,delete]
warn
parameter-description-required
Parameters must have descriptions
$.paths[*][*].parameters[*]
error
response-success-required
Operations must have success responses
$.paths[*][get,post,put,patch,delete].responses
warn
response-401-required
Authenticated operations should define 401
$.paths[*][get,post,put,patch,delete].responses
error
response-description-required
Responses must have descriptions
$.paths[*][*].responses[*]
warn
schema-description-required
Schemas should have descriptions
$.components.schemas[*]
warn
schema-type-defined
Schemas should define a type
$.components.schemas[*]
error
security-schemes-defined
Security schemes must be defined
$.components.securitySchemes
error
get-no-request-body
GET operations must not have a request body
$.paths[*].get
error
no-empty-descriptions
Descriptions must not be empty
$..description