Skip to content

Commit

Permalink
Allow field 'c' to be used for Comment creation
Browse files Browse the repository at this point in the history
  • Loading branch information
qartik committed Oct 17, 2023
1 parent 69cc555 commit 5ae8ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phir/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class IfBlock(Block):
class Comment(BaseModel):
"""Optional comment."""

model_config = ConfigDict(extra="forbid")
model_config = ConfigDict(extra="forbid", populate_by_name=True)

c: str = Field(..., alias="//", min_length=3)

Expand Down

0 comments on commit 5ae8ab1

Please sign in to comment.