oapi-codegen 1.0.0

Generate client and server boilerplate from OpenAPI 3 specifications
Documentation
//! Lowering OpenAPI documents into the intermediate representation (IR).
//!
//! [`schema`] lowers component schemas into an [`crate::ir::Module`]. [`paths`]
//! lowers operations into an [`crate::ir::Service`]. Both feed the emit pass.
//! [`validate`] collects independent semantic problems so one run can report
//! every problem it finds rather than aborting on the first.

/// Lowering of the validation keywords a schema declares. Used by [`schema`] and
/// [`paths`] only.
pub(crate) mod constraints;
/// Lowering of a schema `default`. Used by [`schema`] and [`paths`] only.
pub(crate) mod default;
/// Readers for the `x-` extensions the generator understands.
pub(crate) mod extension;
pub mod paths;
pub mod prune;
pub mod recurse;
pub mod rename;
pub mod schema;
pub mod security;
pub mod servers;
pub mod validate;

pub use crate::lower::paths::generate_service;
pub use crate::lower::prune::prune_unused_models;
pub use crate::lower::recurse::box_recursive_types;
pub use crate::lower::rename::TypeNames;
pub use crate::lower::rename::check_duplicate_models;
pub use crate::lower::rename::check_prelude_shadowing;
pub use crate::lower::rename::check_type_name_collisions;
pub use crate::lower::rename::rewrite_service;
pub use crate::lower::rename::type_renames;
pub use crate::lower::schema::generate_models;
pub use crate::lower::servers::lower_server_urls;
pub use crate::lower::validate::Diagnostics;