viagogo · API Governance Rules
viagogo API Rules
Spectral linting rules defining API design standards and conventions for viagogo.
54 Rules
error 40
warn 12
info 2
Generated by API Evangelist
Written by API Evangelist tooling for viagogo's APIs. It is a starting point, not a ruleset viagogo publishes or enforces.
Rule Categories
info
mediatype
oauthflow
operation
parameter
path
requestbody
response
root
schema
securityscheme
server
servers
tag
Rules
error
operation-has-operationid
Every operation declares an operationId (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete]
error
operation-has-summary
Every operation has a summary (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete]
error
operation-has-tags
Every operation is tagged (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete]
error
operation-has-success-response
Every operation declares a 2xx response (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete].responses
error
operation-declares-4xx
Every operation declares at least one 4xx response (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete].responses
error
operation-declares-401-or-403
Every operation declares 401 or 403 (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete].responses
warn
operation-secured
Every operation declares its own security requirement (measured: 98% of this contract)
$.paths[*][get,post,put,patch,delete]
warn
root-security-declared
The contract declares security at the root (measured: 90% of this contract)
$
error
path-segment-casing-snake
Path segments are snake case (measured: 100% of this contract)
$.paths[*]~
error
path-no-trailing-slash
Paths carry no trailing slash (measured: 100% of this contract)
$.paths[*]~
error
path-params-in-braces
Path parameters use {braces}, not :colon (measured: 100% of this contract)
$.paths[*]~
error
servers-https
Servers are https (measured: 100% of this contract)
$.servers[*].url
info
response-media-type
Responses are served as application/hal+json (measured: 80% of this contract)
$.paths[*][get,post,put,patch,delete].responses[*].content
error
info-title-present
Info declares title (measured: 100% of this contract)
$.info
warn
info-title-min-length
Info.title runs at least 18 characters (measured: 95% of this contract)
$.info.title
error
info-description-min-length
Info.description runs at least 35 characters (measured: 100% of this contract)
$.info.description
error
info-version-present
Info declares version (measured: 100% of this contract)
$.info
error
info-version-semver
info.version is numeric (measured: 100% of this contract)
$.info.version
error
server-url-present
Server declares url (measured: 100% of this contract)
$.servers[*]
error
server-url-https
Server.url is https (measured: 100% of this contract)
$.servers[*].url
error
server-description-present
Server declares description (measured: 100% of this contract)
$.servers[*]
error
server-description-min-length
Server.description runs at least 7 characters (measured: 100% of this contract)
$.servers[*].description
error
tag-name-present
Tag declares name (measured: 100% of this contract)
$.tags[*]
error
tag-description-min-length
Tag.description runs at least 35 characters (measured: 100% of this contract)
$.tags[*].description
error
operation-tags-present
Operation declares tags (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
error
operation-summary-present
Operation declares summary (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
warn
operation-summary-min-length
Operation.summary runs at least 11 characters (measured: 97% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].summary
warn
operation-description-min-length
Operation.description runs at least 38 characters (measured: 97% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].description
error
operation-operationid-present
Operation declares operationId (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
info
operation-parameters-present
Operation declares parameters (measured: 86% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
error
operation-responses-present
Operation declares responses (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
warn
operation-security-present
Operation declares security (measured: 98% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
error
parameter-name-present
Parameter declares name (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
error
parameter-in-present
Parameter declares in (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
error
parameter-in-values
Parameter.in is one of path, query (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*].in
warn
parameter-description-min-length
Parameter.description runs at least 34 characters (measured: 97% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*].description
error
parameter-schema-present
Parameter declares schema (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
error
requestbody-content-present
RequestBody declares content (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].requestBody
error
mediatype-schema-present
MediaType declares schema (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*].content[*]
warn
response-description-present
Response declares description (measured: 90% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*]
warn
response-content-present
Response declares content (measured: 90% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*]
error
schema-type-present
Schema declares type (measured: 100% of this contract)
$.components.schemas[*]
warn
schema-type-values
Schema.type is one of object (measured: 99% of this contract)
$.components.schemas[*].type
warn
schema-description-min-length
Schema.description runs at least 18 characters (measured: 95% of this contract)
$.components.schemas[*].description
warn
schema-properties-present
Schema declares properties (measured: 99% of this contract)
$.components.schemas[*]
error
securityscheme-type-present
SecurityScheme declares type (measured: 100% of this contract)
$.components.securitySchemes[*]
error
securityscheme-type-values
SecurityScheme.type is one of oauth2 (measured: 100% of this contract)
$.components.securitySchemes[*].type
error
securityscheme-bearerformat-present
SecurityScheme declares bearerFormat (measured: 100% of this contract)
$.components.securitySchemes[*]
error
securityscheme-bearerformat-values
SecurityScheme.bearerFormat is one of JWT (measured: 100% of this contract)
$.components.securitySchemes[*].bearerFormat
error
securityscheme-flows-present
SecurityScheme declares flows (measured: 100% of this contract)
$.components.securitySchemes[*]
error
oauthflow-authorizationurl-https
OAuthFlow.authorizationUrl is https (measured: 100% of this contract)
$.components.securitySchemes[*].flows[*].authorizationUrl
error
oauthflow-tokenurl-present
OAuthFlow declares tokenUrl (measured: 100% of this contract)
$.components.securitySchemes[*].flows[*]
error
oauthflow-tokenurl-https
OAuthFlow.tokenUrl is https (measured: 100% of this contract)
$.components.securitySchemes[*].flows[*].tokenUrl
error
oauthflow-refreshurl-https
OAuthFlow.refreshUrl is https (measured: 100% of this contract)
$.components.securitySchemes[*].flows[*].refreshUrl
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.