class Price(BaseModel):
amount: float
Price.model_validate_json('{"amount": "$10.50"}')
Error:
text
pydantic.ValidationError: 1 validation error for Price
amount
Input should be a valid number, unable to parse string as a
number [type=float_parsing, input_value='$10.50', input_type=str]