Mathpix · API Governance Rules
Mathpix API Rules
Spectral linting rules defining API design standards and conventions for Mathpix.
8 Rules
error 3
warn 4
info 1
Rule Categories
mathpix
Rules
error
mathpix-versioned-base-path
All Mathpix endpoints must live under /v3 to match docs.mathpix.com routing.
$.paths
warn
mathpix-dual-apikey-security
Server-side operations must require both app_id and app_key headers (except /v3/app-tokens which only needs app_key).
$.components.securitySchemes
warn
mathpix-snake-case-parameters
All parameter names use snake_case to match Mathpix request/response field naming.
$.paths[*][*].parameters[*].name
warn
mathpix-operation-id-camel-case
operationId must be lowerCamelCase (e.g. processImage, downloadDocx).
$.paths[*][*].operationId
warn
mathpix-title-case-summaries
Operation summaries must use Title Case.
$.paths[*][*].summary
error
mathpix-tag-present
Every operation must declare at least one tag (Images, Documents, Conversions, Batches, Strokes, App Tokens, Usage).
$.paths[*][*]
info
error
mathpix-production-server
servers[] must declare https://api.mathpix.com.
$.servers[*].url