Describe the bug
Scientific notation in json converts to str in model:
class Model(BaseModel):
hello: str
To Reproduce
Example json:
{
"hello": 1e-9
}
Used commandline:
$ datamodel-codegen --input-file-type json --input gen/test-meta.json --output gen/test_scientific_notation.py
Expected behavior
Expected float.
Version:
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too