get_validation_alias
Retrieves the validation alias for a given model field, falling back to the field's standard alias if no specific validation alias is defined.
def get_validation_alias(
field: ModelField
) - > str
Retrieves the validation alias for a model field, falling back to the standard field alias if no specific validation alias is defined.
Parameters
| Name | Type | Description |
|---|---|---|
| field | ModelField | The model field instance from which to extract alias metadata. |
Returns
| Type | Description |
|---|---|
str | The specific validation alias string if present; otherwise, the default field alias. |