Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for get_model_fields (0.3 seconds)

  1. fastapi/_compat/v2.py

        field_params = {f.name: (f.field_info.annotation, f.field_info) for f in fields}
        BodyModel: type[BaseModel] = create_model(model_name, **field_params)  # type: ignore[call-overload]
        return BodyModel
    
    
    def get_model_fields(model: type[BaseModel]) -> list[ModelField]:
        model_fields: list[ModelField] = []
        for name, field_info in model.model_fields.items():
            type_ = field_info.annotation
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 16.7K bytes
    - Click Count (0)
Back to Top