Skip to main content

Module openapi

Module openapi 

Source
Expand description

Single-source API_ROUTES table and OpenAPI 3.1.0 document generator (governed by rest-api-standards.sot.md RA-OAS-1..7).

Runtime GET /api/v1/openapi.json, CLI arks serve openapi, and the published docs/assets/data/openapi.json artifact are all generated from API_ROUTES and enforced byte-for-byte by unit tests.

Structs§

ApiRouteDef
Declarative API route definition driving OpenAPI 3.1.0 generation and route audits.

Enums§

ApiSurface
Server listener surface owning an API route (x-arks-surface).
ReleaseLine
Release line availability of a route (v1.0 stays Kinetic-free).

Constants§

API_ROUTES
Single source of truth for arks serve and arks hub documented REST operations.

Functions§

openapi_document
Generate the canonical OpenAPI 3.1.0 JSON document from API_ROUTES.
openapi_json_pretty
Deterministic pretty-printed JSON string (with trailing newline) for CLI and drift tests.