Describe the bug
From the json schema a property named 'schema
' was created as a field named 'schema_
'.
To Reproduce
Example schema:
https://schema.getpostman.com/json/collection/v2.1.0/collection.json
Used commandline:
$ datamodel-codegen --url https://schema.getpostman.com/json/collection/v2.1.0/collection.json --output-model-type typing.TypedDict --output postman_td.py
and equally:
$ datamodel-codegen --url https://schema.getpostman.com/json/collection/v2.1.0/collection.json --output-model-type dataclasses.dataclass --output postman_dc.py
Expected behavior
Expected that the 'Info
' class would have a field named 'schema
'. Instead it has a field named 'schema_
'.
Version:
Additional context
Add any other context about the problem here.
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