TOP Group (The Open Platform) · API Governance Rules
TOP Group (The Open Platform) API Rules
Spectral linting rules defining API design standards and conventions for TOP Group (The Open Platform).
48 Rules
error 32
warn 13
info 3
Generated by API Evangelist
Written by API Evangelist tooling for TOP Group (The Open Platform)'s APIs. It is a starting point, not a ruleset TOP Group (The Open Platform) publishes or enforces.
Rule Categories
contact
header
info
mediatype
operation
operationid
parameter
path
property
requestbody
response
schema
server
tag
Rules
error
operation-has-operationid
Every operation declares an operationId (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete]
error
operationid-casing-camel
operationIds are camel case (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete].operationId
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
warn
path-segment-casing-snake
Path segments are snake case (measured: 94% 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[*]~
warn
response-media-type
Responses are served as application/json (measured: 98% of this contract)
$.paths[*][get,post,put,patch,delete].responses[*].content
warn
property-name-casing-snake
Schema property names are snake case (measured: 91% of this contract)
$.components.schemas[*].properties[*]~
warn
info-has-description
The contract's info block carries a description (measured: 91% of this contract)
$.info
error
info-has-contact-or-terms
The contract's info block names a contact or terms of service (measured: 100% of this contract)
$.info
error
info-title-present
Info declares title (measured: 100% of this contract)
$.info
warn
info-title-min-length
Info.title runs at least 29 characters (measured: 95% of this contract)
$.info.title
warn
info-description-present
Info declares description (measured: 91% of this contract)
$.info
error
info-description-min-length
Info.description runs at least 40 characters (measured: 100% of this contract)
$.info.description
error
info-contact-present
Info declares contact (measured: 100% of this contract)
$.info
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
contact-name-present
Contact declares name (measured: 100% of this contract)
$.info.contact
error
contact-email-present
Contact declares email (measured: 100% of this contract)
$.info.contact
error
server-url-present
Server declares url (measured: 100% of this contract)
$.servers[*]
error
tag-name-present
Tag declares name (measured: 100% of this contract)
$.tags[*]
warn
tag-name-casing-pascal
Tag.name is pascal case (measured: 91% of this contract)
$.tags[*].name
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 20 characters (measured: 95% 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]
error
operation-operationid-casing-camel
Operation.operationId is camel case (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].operationId
error
operation-responses-present
Operation declares responses (measured: 100% 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[*]
warn
parameter-in-values
Parameter.in is one of query (measured: 96% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*].in
warn
parameter-description-min-length
Parameter.description runs at least 24 characters (measured: 96% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*].description
info
parameter-required-present
Parameter declares required (measured: 87% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
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[*]
error
response-description-present
Response declares description (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*]
warn
response-content-present
Response declares content (measured: 98% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*]
error
header-schema-present
Header declares schema (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*].headers[*]
error
schema-type-present
Schema declares type (measured: 100% of this contract)
$.components.schemas[*]
warn
schema-type-values
Schema.type is one of object, string (measured: 98% of this contract)
$.components.schemas[*].type
error
schema-description-min-length
Schema.description runs at least 38 characters (measured: 100% of this contract)
$.components.schemas[*].description
error
schema-format-values
Schema.format is one of tuple-item (measured: 100% of this contract)
$.components.schemas[*].format
info
schema-required-present
Schema declares required (measured: 87% of this contract)
$.components.schemas[*]
info
schema-properties-present
Schema declares properties (measured: 88% of this contract)
$.components.schemas[*]
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.