src/openapi/mod.rs 570 B raw
1
//! OpenAPI (2.0 + 3.0 + 3.1, JSON/YAML) loading and conversion into collections.
2
//!
3
//! Specs are parsed into [`serde_json::Value`] rather than a strict spec model
4
//! so that unknown fields and 3.0/3.1 differences are tolerated gracefully.
5
//! Swagger 2.0 documents are rewritten into the 3.0 shape by [`swagger2`] while
6
//! loading, so nothing below [`loader`] deals with more than one dialect.
7
8
pub mod docs;
9
pub mod examples;
10
pub mod import;
11
pub mod loader;
12
pub mod resolve;
13
pub mod swagger2;
14
15
pub use import::import_spec;
16
pub use loader::{load_spec, parse_spec};