Skip to content

Commit 4b7faac

Browse files
committed
@GitHK review: updated the example
1 parent 892456b commit 4b7faac

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/models-library/src/models_library/utils/change_case.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44
Example of usage in pydantic:
55
66
[...]
7-
class Config:
8-
extra = Extra.forbid
9-
alias_generator = snake_to_camel # <--------
10-
json_loads = json_loads
11-
json_dumps = json_dumps
7+
model_config = ConfigDict(
8+
alias_generator=snake_to_camel, # <-- note
9+
)
1210
1311
"""
1412

0 commit comments

Comments
 (0)