Skip to content

Commit 860abec

Browse files
authored
fix alias_generator to resolve 422 errors (#44)
* fix alias_generator to resolve 422 errors * bump version to 0.9.1
1 parent 848ae05 commit 860abec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

enochecker3/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def _to_camel_case(x: str) -> str:
1717
class BaseModel(PydanticBaseModel):
1818
model_config = ConfigDict(
1919
use_enum_values=True,
20-
alias_generator=AliasGenerator(serialization_alias=to_camel),
20+
alias_generator=AliasGenerator(alias=to_camel),
2121
populate_by_name=True,
2222
)
2323

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setuptools.setup(
1111
name="enochecker3",
12-
version="0.9.0",
12+
version="0.9.1",
1313
author="ldruschk",
1414
author_email="[email protected]",
1515
description="FastAPI based library for building async python checkers for the EnoEngine A/D CTF Framework",

0 commit comments

Comments
 (0)