Describe the bug
I want to create pydantic models for the Spotify api and tried to parse an example response (see here).
To Reproduce
Download the gist, install datamodel-codegen and run the following command.
The command I am using to generate the the models is
datamodel-codegen --input-file-type jsonschema --input api_response.json --out output.py
Screenshots

@HuiiBuh
Thank you for creating this issue.
I found about Spotify's json data.
https://labs.spotify.com/2015/03/09/understanding-spotify-web-api/
This Json data is Json format which isn't Json Schema
This code generator supports Json Schema or OpenAPI.
About Json Schema
https://json-schema.org/
I totally missed that.
After I converted the json data to a json scheme and this time I get another exception.
(I edited the gist...)

@HuiiBuh
I have fixed the bug and released new version as 0.4.5
Tank you very much :D
I just confirmed that it is working now.
Most helpful comment
Tank you very much :D
I just confirmed that it is working now.