oaspec/codegen/allof_merge
Types
Result of merging allOf sub-schemas.
pub type MergedAllOf {
MergedAllOf(
properties: dict.Dict(String, schema.SchemaRef),
required: List(String),
additional_properties: schema.AdditionalProperties,
)
}
Constructors
-
MergedAllOf( properties: dict.Dict(String, schema.SchemaRef), required: List(String), additional_properties: schema.AdditionalProperties, )
Values
pub fn merge_allof_schemas(
schemas: List(schema.SchemaRef),
ctx: context.Context,
) -> MergedAllOf
Merge allOf sub-schemas: properties, required, and additionalProperties. Non-object sub-schemas (primitives, arrays) are included as a synthetic “value” property to preserve their constraints.