Browse Source

update dataclass for backward-compat

pull/10621/head
Yasin Tatar 1 year ago
parent
commit
217bf8f2b9
  1. 1
      fastapi/_compat.py

1
fastapi/_compat.py

@ -347,6 +347,7 @@ else:
@dataclass
class GenerateJsonSchema: # type: ignore[no-redef]
ref_template: str
by_alias: bool = True
class PydanticSchemaGenerationError(Exception): # type: ignore[no-redef]
pass

Loading…
Cancel
Save