Skip to main content

Crate hyperlane_plugin_openapi

Crate hyperlane_plugin_openapi 

Source
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§

OpenApiConfig
Configuration for OpenApiPlugin.
OpenApiInfo
OpenAPI 3.1.0 info metadata object.
OpenApiOperation
OpenAPI 3.1.0 operation descriptor under a path and HTTP method.
OpenApiParameter
OpenAPI 3.1.0 parameter descriptor (query, header, path, cookie).
OpenApiPlugin
Pre-serialized zero-allocation OpenAPI server backing OpenapiHook.
OpenApiResponse
OpenAPI 3.1.0 response entry keyed by HTTP status code string.
OpenApiServer
OpenAPI 3.1.0 server entry.
OpenApiSpec
Complete OpenAPI 3.1.0 document structure.
OpenapiHook
Opt-in request middleware serving /openapi.json and /docs with 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-Control header 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].