mockforge_core/openapi.rs
1//! OpenAPI specification handling and utilities.
2//!
3//! The entire OpenAPI domain model (`OpenApiSpec`, `OpenApiSchema`, response
4//! selection/generation, route construction, trace instrumentation, multi-spec,
5//! validation, spec format detection, and the Swagger 2.0 → OpenAPI 3.0
6//! converter) lives in the dedicated [`mockforge_openapi`] crate. This module
7//! re-exports the public surface so existing consumers importing from
8//! `mockforge_core::openapi::*` continue to resolve unchanged.
9
10pub use mockforge_openapi::{
11 multi_spec, response, response_selection, response_trace, route, schema, spec, swagger_convert,
12 validation, OpenApiOperation, OpenApiSchema, OpenApiSecurityRequirement, OpenApiSpec,
13 ResponseSelectionMode, ResponseSelector,
14};
15
16// Mirror the glob re-exports the legacy module exposed so downstream
17// `use mockforge_core::openapi::*` keeps pulling in ResponseGenerator,
18// AiGenerator, OpenApiRoute, etc.
19pub use response::*;
20pub use route::*;