Skip to content

Commit 5eb8e77

Browse files
Fix dict without type arguments.
1 parent a93771c commit 5eb8e77

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/pdfrest/models/public.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
Field,
1616
HttpUrl,
1717
)
18+
from pydantic.json_schema import JsonSchemaValue
1819
from pydantic_core import CoreSchema
1920
from typing_extensions import override
2021

@@ -160,7 +161,9 @@ def to_class(v: Any) -> PdfRestFileID:
160161
)
161162

162163
@classmethod
163-
def __get_pydantic_json_schema__(cls, core_schema: Any, handler: Any) -> dict:
164+
def __get_pydantic_json_schema__(
165+
cls, core_schema: Any, handler: Any
166+
) -> JsonSchemaValue:
164167
"""
165168
Provide a clean JSON Schema for OpenAPI/JSON Schema generators.
166169
"""

0 commit comments

Comments
 (0)