ParamDetails
This class serves as a container for parameter metadata, including its type annotation, dependency injection configuration, and model field information. It is used to encapsulate the structural and functional details of a parameter within a data model or dependency system.
Attributes
| Attribute | Type | Description |
|---|---|---|
| type_annotation | Any | The type hint or annotation associated with the parameter, used for validation and serialization logic. |
| depends | `params.Depends | None` |
| field | `ModelField | None` |
Constructor
Signature
def ParamDetails(
type_annotation: Any,
depends: params.Depends | None,
field: ModelField | None
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| type_annotation | Any | The type hint or annotation associated with the parameter. |
| depends | `params.Depends | None` |
| field | `ModelField | None` |
Signature
def ParamDetails(
type_annotation: Any,
depends: params.Depends | None,
field: ModelField | None
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| type_annotation | Any | The type hint or annotation associated with the parameter used for validation and serialization. |
| depends | `params.Depends | None` |
| field | `ModelField | None` |