Skip to content

Commit

Permalink
Remove model_ protected namespace from pydantic generating warning wi…
Browse files Browse the repository at this point in the history
…th new v1 fields
  • Loading branch information
t0mz06 committed Oct 25, 2024
1 parent 24d8a24 commit f8978c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pytmv1/model/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
Status,
)

CFG = ConfigDict(alias_generator=to_camel, populate_by_name=True)
CFG = ConfigDict(
alias_generator=to_camel, populate_by_name=True, protected_namespaces=()
)


class BaseModel(PydanticBaseModel):
Expand Down

0 comments on commit f8978c4

Please sign in to comment.