iter_union_choices
Iterate over the choices of a 'union' schema.
def iter_union_choices(
union_schema: UnionSchema
) - > Generator[CoreSchema]
Iterate over the choices of a 'union' schema.
Parameters
| Name | Type | Description |
|---|---|---|
| union_schema | UnionSchema | The Pydantic core schema representing a union type from which to extract member choices. |
Returns
| Type | Description |
|---|---|
Generator[CoreSchema] | A generator yielding the individual CoreSchema definitions contained within the union, resolving any tuple-wrapped choices. |