Expand description
hyperlane-plugin-openapi
OpenAPI 3.1.0 specification builder and zero-allocation interactive docs
plugin for Hyperlane serving ETag-cached /openapi.json (with 304 Not Modified) and a self-contained zero-CDN HTML explorer at /docs.
Structs§
- Open
ApiConfig - Configuration for
OpenApiPlugin. - Open
ApiInfo - OpenAPI 3.1.0
infometadata object. - Open
ApiOperation - OpenAPI 3.1.0 operation descriptor under a path and HTTP method.
- Open
ApiParameter - OpenAPI 3.1.0 parameter descriptor (
query,header,path,cookie). - Open
ApiPlugin - Pre-serialized zero-allocation OpenAPI server backing
OpenapiHook. - Open
ApiResponse - OpenAPI 3.1.0 response entry keyed by HTTP status code string.
- Open
ApiServer - OpenAPI 3.1.0
serverentry. - Open
ApiSpec - Complete OpenAPI 3.1.0 document structure.
- Openapi
Hook - Opt-in request middleware serving
/openapi.jsonand/docswith zero per-request allocations.
Constants§
- DEFAULT_
DOCS_ PATH - Default path serving the self-contained interactive HTML API documentation explorer.
- DEFAULT_
OPENAPI_ CACHE_ CONTROL - Default
Cache-Controlheader applied to OpenAPI specification and docs responses. - DEFAULT_
SPEC_ PATH - Default path serving the pre-serialized OpenAPI JSON document.
- OPENAPI_
VERSION - OpenAPI specification version emitted by [
OpenApiSpec].