Struct schemars::visit::ReplaceBoolSchemas [−][src]
pub struct ReplaceBoolSchemas {
pub skip_additional_properties: bool,
}
Expand description
This visitor will replace all boolean JSON Schemas with equivalent object schemas.
This is useful for dialects of JSON Schema (e.g. OpenAPI 3.0) that do not support booleans as schemas.
Fields
skip_additional_properties: bool
When set to true
, a schema’s additionalProperties
property will not be changed from a boolean.
Trait Implementations
Override this method to modify a SchemaObject
and (optionally) its subschemas. Read more
Override this method to modify a RootSchema
and (optionally) its subschemas. Read more
Auto Trait Implementations
impl RefUnwindSafe for ReplaceBoolSchemas
impl Send for ReplaceBoolSchemas
impl Sync for ReplaceBoolSchemas
impl Unpin for ReplaceBoolSchemas
impl UnwindSafe for ReplaceBoolSchemas
Blanket Implementations
Mutably borrows from an owned value. Read more