Skip to content

Commit

Permalink
Fix deprecated usage
Browse files Browse the repository at this point in the history
This has changed with Pydantic v2.
  • Loading branch information
pgjones committed Aug 20, 2023
1 parent dbb06bd commit 50e8a38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ class Result:

@dataclass
class Headers:
x_name: str = Field(..., description="x-name description", deprecated=True)
x_name: str = Field(
..., description="x-name description", json_schema_extra={"deprecated": True}
)


async def test_openapi() -> None:
Expand Down

0 comments on commit 50e8a38

Please sign in to comment.