mirror of https://github.com/tiangolo/fastapi.git
update dataclass for backward-compat
This commit is contained in:
parent
f507a77a43
commit
217bf8f2b9
|
|
@ -347,6 +347,7 @@ else:
|
||||||
@dataclass
|
@dataclass
|
||||||
class GenerateJsonSchema: # type: ignore[no-redef]
|
class GenerateJsonSchema: # type: ignore[no-redef]
|
||||||
ref_template: str
|
ref_template: str
|
||||||
|
by_alias: bool = True
|
||||||
|
|
||||||
class PydanticSchemaGenerationError(Exception): # type: ignore[no-redef]
|
class PydanticSchemaGenerationError(Exception): # type: ignore[no-redef]
|
||||||
pass
|
pass
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue