paperclip_core/v3/
mod.rs

1#![cfg(feature = "v3")]
2//! Conversion traits and helps functions that help converting openapi v2 types to openapi v3.
3//! For the OpenAPI v3 types the crate `openapiv3` is used.
4
5use super::v2::models as v2;
6mod models;
7
8/// Convert this crates openapi v2 (`DefaultApiRaw`) to `openapiv3::OpenAPI`
9pub fn openapiv2_to_v3(v2: v2::DefaultApiRaw) -> openapiv3::OpenAPI {
10    openapiv3::OpenAPI::from(v2)
11}