Nnotice that components.schemas.User.properties has type: null.
If you attempt to run npx ng-openapi-gen -i test.json error will be quite missleading:
Error on API generation from test.json: TypeError: Cannot read properties of null (reading 'description')
I wonder if it will be possible to have better error handling and perhaps show line number where JSON schema parser chocked?
Sorry, I'm not having any time for this project.
Except that a PR is provided, it won't be done.
Even with a PR it might take some time until I'm able to review and merge.
I came across rather large OpenAPI spec with over 3K of lines which had one of properties object defined incorrectly, here's example:
Nnotice that components.schemas.User.properties has type: null.
If you attempt to run
npx ng-openapi-gen -i test.json
error will be quite missleading:Error on API generation from test.json: TypeError: Cannot read properties of null (reading 'description')
I wonder if it will be possible to have better error handling and perhaps show line number where JSON schema parser chocked?