Vite · API Governance Rules
Vite API Rules
Spectral linting rules defining API design standards and conventions for Vite.
9 Rules
error 4
warn 5
Rule Categories
vite
Rules
warn
vite-operation-ids-camel-case
Operation IDs must use camelCase to match Vite's JavaScript API naming conventions.
$.paths[*][*].operationId
warn
vite-paths-must-have-tags
All operations must be tagged for proper documentation grouping.
$.paths[*][*]
error
vite-require-operation-summaries
All operations must have a human-readable summary.
$.paths[*][*]
warn
vite-require-descriptions
All operations, schemas, and parameters must have descriptions for developer clarity.
$.paths[*][*]$.components.schemas[*]$.paths[*][*].parameters[*]
error
vite-server-paths-start-with-slash
All paths must start with a forward slash.
$.paths
warn
vite-schema-properties-have-types
All schema properties must define an explicit type for TypeScript interoperability.
$.components.schemas[*].properties[*]
error
vite-use-openapi-31
Vite API specs must use OpenAPI 3.1.0 to leverage full JSON Schema support.
$
warn
vite-info-contact-required
API info must include contact information pointing to the Vite team.
$.info
error
vite-responses-have-200
GET operations must always define a 200 success response.
$.paths[*].get
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for spectral rules
4 MCP tools reach this
find_rulesBrowse and filter every ruleset in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/vite-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.