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 UnionSchema dictionary containing the collection of possible schema choices to iterate over. |
Returns
| Type | Description |
|---|---|
Generator[CoreSchema] | A generator yielding the individual CoreSchema definitions contained within the union's choices. |