OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
[ ] [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
When an API path including a path argument /books/{bookId} references a path within an other file using $ref and the path parameter itself {bookId} references a parameters definition the base class generation creates invalid Python code.
Bug Report Checklist
Description
When an API path including a path argument
/books/{bookId}
references a path within an other file using$ref
and the path parameter itself{bookId}
references a parameters definition the base class generation creates invalid Python code.openapi-generator version
v7.8.0
OpenAPI declaration file content or url
common.yml
swagger.yml
Generation Details
Produced file
openapi_server/apis/default_api_base.py
. See theUNKNOWN_PARAMETER_NAME
!Now expected would have been
Steps to reproduce
make generate