Skip to main content

openapi_nexus_spec/
lib.rs

1//! OpenAPI specification types for OpenAPI Nexus.
2//!
3//! This crate provides versioned modules for OpenAPI 3.0, 3.1, and 3.2.
4//! OpenAPI 3.0 and 3.1 are fully implemented; 3.2 is a stub for future use.
5
6pub mod oas30;
7pub mod oas31;
8pub mod oas32;
9
10pub use oas30::OpenApiV30Spec;
11pub use oas31::OpenApiV31Spec;
12
13#[cfg(test)]
14mod test_utils;
15
16#[cfg(test)]
17fn run_fixture_test(rel_path: &str) {
18    test_utils::run_fixture_test(rel_path);
19}
20
21#[cfg(test)]
22#[allow(non_snake_case)]
23mod generated_fixture_tests {
24    include!(concat!(env!("OUT_DIR"), "/generated_fixture_tests.rs"));
25}