Skip to content

Commit

Permalink
Fix pydantic deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pgjones committed Nov 12, 2023
1 parent c49719a commit ae69023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quart_schema/pydantic.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __get_pydantic_core_schema__(
_source_type: Any,
_handler: Callable[[Any], core_schema.CoreSchema],
) -> core_schema.CoreSchema:
return core_schema.general_plain_validator_function(cls._validate)
return core_schema.with_info_plain_validator_function(cls._validate)

@classmethod
def __get_pydantic_json_schema__(
Expand Down

0 comments on commit ae69023

Please sign in to comment.