Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for get_model_fields (0.33 sec)

  1. fastapi/_compat.py

            BodyModel: Type[BaseModel] = create_model(model_name, **field_params)  # type: ignore[call-overload]
            return BodyModel
    
        def get_model_fields(model: Type[BaseModel]) -> List[ModelField]:
            return [
                ModelField(field_info=field_info, name=name)
                for name, field_info in model.model_fields.items()
            ]
    
    else:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:36:32 UTC 2024
    - 23.4K bytes
    - Viewed (0)
Back to top