Hypixel · API Governance Rules
Hypixel API Rules
Spectral linting rules defining API design standards and conventions for Hypixel.
36 Rules
error 16
warn 15
info 5
Rule Categories
examples
global
info
microcks
no
openapi
operation
parameter
paths
response
schema
security
servers
tags
Rules
error
info-title-hypixel-prefix
info.title MUST start with `Hypixel` so generated clients and docs are namespaced consistently.
$.info.title
error
info-description-required
info.description is required and must be substantive enough to render the docs landing page.
$.info.description
warn
info-version-v2
Hypixel Public API is on v2; pin the version field accordingly.
$.info.version
warn
info-contact-required
info.contact is required so consumers know where to ask API-help questions.
$.info
warn
info-terms-of-service-required
info.termsOfService must point at the Hypixel ToS (https://hypixel.net/tos).
$.info
error
openapi-version-3
Use OpenAPI 3.0.x for the Hypixel spec.
$.openapi
error
servers-required
A non-empty servers array is required so SDKs know the base URL.
$
error
servers-https-only
Hypixel only serves the API over HTTPS — no HTTP fallback.
$.servers[*].url
warn
servers-hypixel-host
The base server should be api.hypixel.net.
$.servers[*].url
error
paths-versioned
Every path must be prefixed with the API version (`/v2/`).
$.paths[*]~
warn
paths-lowercase
Path segments are lowercase across the Hypixel API.
$.paths[*]~
error
paths-no-trailing-slash
Paths must not end with a trailing slash.
$.paths[*]~
error
paths-no-query-strings
Paths must not embed query strings — use the `parameters` array.
$.paths[*]~
error
operation-get-only
Hypixel is read-only — only GET operations are permitted.
$.paths[*]
error
operation-operationid-required
Every operation must declare an operationId so SDK generators have a stable handle.
$.paths[*][get,post,put,patch,delete]
warn
operation-operationid-camelcase
operationId follows camelCase (e.g. `getPlayer`, `getSkyblockAuctions`).
$.paths[*][get,post,put,patch,delete].operationId
error
operation-summary-required
Every operation must declare a summary.
$.paths[*][get,post,put,patch,delete]
warn
operation-summary-hypixel-prefix
Operation summaries must start with `Hypixel` for Naftiko/Microcks display consistency.
$.paths[*][get,post,put,patch,delete].summary
error
operation-tags-required
Every operation must declare at least one tag for grouping.
$.paths[*][get,post,put,patch,delete]
warn
operation-description-required
Every operation must declare a description (may match summary).
$.paths[*][get,post,put,patch,delete]
warn
tags-global-defined
Global tags must be declared at the spec level with descriptions.
$
warn
tags-allowed
Operations may only use the canonical Hypixel surface tags.
$.paths[*][get,post,put,patch,delete].tags[*]
warn
parameter-description-required
Every parameter must have a description.
$.paths[*][get,post,put,patch,delete].parameters[*]
info
parameter-camelcase
Query and path parameters use camelCase or snake_case (matching upstream naming).
$.paths[*][get,post,put,patch,delete].parameters[*].name
info
parameter-uuid-by-uuid
UUID-shaped player parameters should be named `uuid` for consistency with the Hypixel docs.
$.paths[*][get,post,put,patch,delete].parameters[?(@.in == 'query' && @.schema && @.schema.format == 'uuid')].name
error
no-request-body
Hypixel is read-only; no operation should declare a requestBody.
$.paths[*][get,post,put,patch,delete]
error
response-200-required
Every operation must declare a 200 success response.
$.paths[*][get,post,put,patch,delete].responses
warn
response-content-json
All success responses must be application/json.
$.paths[*][get,post,put,patch,delete].responses[*].content
error
response-description-required
Every response must have a description.
$.paths[*][get,post,put,patch,delete].responses[*]
info
schema-property-snake-or-camel
Schema properties should be snake_case or camelCase (Hypixel mixes the two — both are valid).
$.components.schemas[*].properties[*]~
warn
schema-type-required
Every top-level schema must declare its type.
error
security-scheme-apikey-defined
The `ApiKey` security scheme must be defined.
$.components.securitySchemes
warn
security-scheme-header-named-correctly
The API key must be sent via the `API-Key` HTTP header.
$.components.securitySchemes.ApiKey
warn
global-security-defined
Global security must reference the ApiKey scheme.
$
info
examples-encouraged
Operations should declare at least one named example for Microcks mocking.
$.paths[*][get,post,put,patch,delete].responses.200.content.application/json
info
microcks-extension-encouraged
Operations should declare x-microcks-operation so they mock cleanly under Microcks FALLBACK dispatcher.
$.paths[*][get,post,put,patch,delete]