Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for is_union_of_base_models (0.15 seconds)

  1. fastapi/dependencies/utils.py

            )
            if errors_:
                errors.extend(errors_)
            else:
                values[field.name] = v_
        return values, errors
    
    
    def is_union_of_base_models(field_type: Any) -> bool:
        """Check if field type is a Union where all members are BaseModel subclasses."""
        from fastapi.types import UnionType
    
        origin = get_origin(field_type)
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 38.7K bytes
    - Click Count (3)
Back to Top