pub struct SchemaTransformer;Expand description
Transformer for converting OpenAPI 3.0 schemas to 3.1
Implementations§
Source§impl SchemaTransformer
impl SchemaTransformer
Sourcepub fn transform_30_to_31(schema: Value) -> Value
pub fn transform_30_to_31(schema: Value) -> Value
Transform an OpenAPI 3.0 schema (serde_json::Value) to OpenAPI 3.1 format
Key transformations:
nullable: truebecomestype: ["<type>", "null"]exclusiveMinimum: truewithminimum: XbecomesexclusiveMinimum: XexclusiveMaximum: truewithmaximum: XbecomesexclusiveMaximum: X
Auto Trait Implementations§
impl Freeze for SchemaTransformer
impl RefUnwindSafe for SchemaTransformer
impl Send for SchemaTransformer
impl Sync for SchemaTransformer
impl Unpin for SchemaTransformer
impl UnsafeUnpin for SchemaTransformer
impl UnwindSafe for SchemaTransformer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more