Skip to content

Commit

Permalink
Update method for Pydantic v2
Browse files Browse the repository at this point in the history
  • Loading branch information
bgyori committed Sep 5, 2024
1 parent e160ffc commit 8e6dc5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mira/metamodel/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def validate(cls, v):
return cls(v)

@classmethod
def __modify_schema__(cls, field_schema):
def __get_pydantic_json_schema__(cls, field_schema):
field_schema.update(type="string", example="2*x")

def __str__(self):
Expand Down

0 comments on commit 8e6dc5b

Please sign in to comment.