Fortnite Tracker · API Governance Rules
Fortnite Tracker API Rules
Spectral linting rules defining API design standards and conventions for Fortnite Tracker.
44 Rules
error 20
warn 21
info 3
Rule Categories
external
info
method
no
openapi
operation
parameter
paths
response
schema
security
servers
tags
Rules
warn
info-title-fortnite-tracker-prefix
info.title must start with 'Fortnite Tracker'.
$.info.title
error
info-description-required
info.description is required and must be at least 80 characters.
$.info
error
info-version-required
info.version is required.
$.info
warn
info-contact-required
info.contact should be present so consumers know where to reach support.
$.info
warn
info-license-required
info.license should be present (Tracker Network Terms of Service).
$.info
error
openapi-version-3
Spec must be OpenAPI 3.x.
$.openapi
error
servers-defined
servers must be defined.
$
error
servers-https-only
All server URLs must use HTTPS.
$.servers[*].url
warn
servers-fortnite-tracker-host
Primary server should be api.fortnitetracker.com.
$.servers[*].url
warn
servers-v1-prefix
Server URL must end in /v1 — Fortnite Tracker only ships a v1 surface.
$.servers[*].url
warn
paths-kebab-case
Path segments must be lowercase kebab-case (alphanumerics, hyphens, path params).
$.paths[*]~
error
paths-no-trailing-slash
Paths must not have trailing slashes.
$.paths[*]~
error
paths-no-query-string
Paths must not include query strings.
$.paths[*]~
error
operation-summary-required
Every operation must have a summary.
$.paths[*][get,post,put,patch,delete]
error
operation-description-required
Every operation must have a description.
$.paths[*][get,post,put,patch,delete]
warn
operation-summary-fortnite-tracker-prefix
Operation summary should start with 'Fortnite Tracker '.
$.paths[*][get,post,put,patch,delete].summary
error
operation-operationid-required
Every operation must have an operationId.
$.paths[*][get,post,put,patch,delete]
warn
operation-operationid-camel-case
operationId must be camelCase (verb-noun).
$.paths[*][get,post,put,patch,delete].operationId
warn
operation-operationid-verb-prefix
operationId should start with a known verb (get, list, create, update, delete).
$.paths[*][get,post,put,patch,delete].operationId
error
operation-tags-required
Every operation must have at least one tag.
$.paths[*][get,post,put,patch,delete]
info
operation-microcks-extension
Every operation should have an x-microcks-operation extension for mock-server compatibility.
$.paths[*][get,post,put,patch,delete]
warn
tags-global-defined
Global tags array must be defined.
$
warn
tags-description-required
Every global tag must have a description.
$.tags[*]
warn
tags-title-case
Tag names should be in Title Case (e.g., 'Power Rankings', 'Store').
$.tags[*].name
error
parameter-description-required
Every parameter must have a description.
$.paths[*][get,post,put,patch,delete].parameters[*]
error
parameter-schema-required
Every parameter must have a schema.
$.paths[*][get,post,put,patch,delete].parameters[*]
warn
parameter-camel-case
Parameter names must be camelCase.
$.paths[*][get,post,put,patch,delete].parameters[*].name
info
parameter-example-encouraged
Parameters should include an example value.
$.paths[*][get,post,put,patch,delete].parameters[*]
error
response-200-required
GET endpoints must define a 200 response.
$.paths[*].get.responses
warn
response-401-required
All operations must define a 401 response (TRN-Api-Key required).
$.paths[*][get,post,put,patch,delete].responses
warn
response-429-required
All operations should define a 429 response (rate limiting).
$.paths[*][get,post,put,patch,delete].responses
error
response-description-required
Every response must have a description.
$.paths[*][get,post,put,patch,delete].responses[*]
warn
response-json-content-type
Responses should serve application/json.
$.paths[*][get,post,put,patch,delete].responses[*].content
warn
response-error-schema-fields
Error response schemas must include error and message fields.
$.components.schemas.Error.properties
warn
schema-property-camel-case
Schema property names must be camelCase to match Tracker Network's wire format.
$.components.schemas[*].properties[*]~
warn
schema-top-level-description
Top-level schemas must have a description.
$.components.schemas[*]
warn
schema-type-required
Top-level schemas must declare a type.
$.components.schemas[*]
error
security-global-defined
Global security must be defined (TRN-Api-Key required on every call).
$
error
security-scheme-defined
components.securitySchemes must declare the trnApiKey scheme.
$.components.securitySchemes
error
security-trn-api-key-header
TRN-Api-Key must be defined as an apiKey security scheme in the header.
$.components.securitySchemes.trnApiKey
error
method-get-no-request-body
GET operations must not declare a requestBody.
$.paths[*].get
error
method-delete-no-request-body
DELETE operations must not declare a requestBody.
$.paths[*].delete
warn
no-empty-description
Description fields must not be empty strings.
$..description
info
external-docs-encouraged
Spec should reference external docs (fortnitetracker.com/site-api).
$