Skip to main content

barbacane_compiler/spec_parser/
mod.rs

1//! OpenAPI 3.x and AsyncAPI 3.x spec parser.
2//!
3//! Reads YAML/JSON specs, extracts `paths`, `servers`, and `x-barbacane-*`
4//! vendor extensions. Auto-detects the format from root `openapi` or `asyncapi` field.
5
6pub mod error;
7pub mod model;
8pub mod parser;
9
10pub use error::ParseError;
11pub use model::{
12    ApiSpec, AsyncAction, Channel, ContentSchema, DispatchConfig, Message, MiddlewareConfig,
13    Operation, Parameter, RequestBody, ResponseContent, SpecFormat,
14};
15pub use parser::{parse_spec, parse_spec_file};