hyperlane-plugin-openapi 23.3.1

An OpenAPI 3.1.0 specification builder and zero-allocation interactive API docs plugin for the Hyperlane framework serving ETag-cached /openapi.json (with 304 support) and a self-contained zero-CDN /docs explorer.
Documentation
//! 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`.

mod r#const;
mod r#fn;
mod r#impl;
mod r#static;
mod r#struct;

#[cfg(test)]
#[path = "../tests/mod.rs"]
mod tests;

pub use {r#const::*, r#struct::*};

pub(crate) use {r#fn::*, r#static::*};

use std::{collections::BTreeMap, hash::Hasher, str::from_utf8, sync::OnceLock};

use {
    hyperlane::{
        CACHE_CONTROL, CONTENT_TYPE, Context, ETAG, HttpStatus, Method, Response, ResponseError,
        ServerHook, Status, Stream, XxHash3_64,
    },
    lombok_macros::*,
    serde::{Deserialize, Serialize},
    serde_json::{Value, to_vec},
};