Skip to main content

generate_any_of

Function generate_any_of 

Source
pub fn generate_any_of(
    name: &str,
    variants: &[ReferenceOr<Schema>],
    description: Option<&String>,
    inline_types: &mut Vec<TokenStream>,
) -> TokenStream
Expand description

Generate a Rust enum type for an anyOf composition.

Always untagged — we treat anyOf like a non-discriminated oneOf because strict anyOf semantics (multiple branches may match) do not have a clean representation in typed Rust.