I get an AttributeError when I run fastapi-codegen with some OpenAPI files generated from MEF-LSO-Legato Billie Release. The exception is raised inside jsonschema parser library. Here is the error:
File "<...>\.venv\lib\site-packages\datamodel_code_generator\parser\jsonschema.py", line 1052, in root_id_context
root_id: Optional[str] = root_raw.get('$id')
AttributeError: 'str' object has no attribute 'get'
I left a "frozen" version of MEF-LSO-Legato in this public repo and just changed the $ref
for using repo's raw files. I'm trying to generate code from <...>/serviceApi/inventory/serviceInventoryApi.openapi.yaml file when I get the error.
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