barbacane-compiler 0.7.0

Compiles OpenAPI/AsyncAPI specs into .bca artifacts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! OpenAPI 3.x and AsyncAPI 3.x spec parser.
//!
//! Reads YAML/JSON specs, extracts `paths`, `servers`, and `x-barbacane-*`
//! vendor extensions. Auto-detects the format from root `openapi` or `asyncapi` field.

pub mod error;
pub mod model;
pub mod parser;

pub use error::ParseError;
pub use model::{
    ApiSpec, AsyncAction, Channel, ContentSchema, DispatchConfig, Message, MiddlewareConfig,
    Operation, Parameter, RequestBody, ResponseContent, SpecFormat,
};
pub use parser::{parse_spec, parse_spec_file};