|
|
@ -200,7 +200,9 @@ def get_schema_from_model_field( |
|
|
], |
|
|
], |
|
|
separate_input_output_schemas: bool = True, |
|
|
separate_input_output_schemas: bool = True, |
|
|
) -> Dict[str, Any]: |
|
|
) -> Dict[str, Any]: |
|
|
override_mode: Union[Literal["validation"], None] = ( |
|
|
override_mode: Union[Literal["validation"], None] = None |
|
|
|
|
|
if not separate_input_output_schemas: |
|
|
|
|
|
override_mode = ( |
|
|
None |
|
|
None |
|
|
if (separate_input_output_schemas or _has_computed_fields(field)) |
|
|
if (separate_input_output_schemas or _has_computed_fields(field)) |
|
|
else "validation" |
|
|
else "validation" |
|
|
|