#### Bug Report Checklist - [x] Have you provided a full/minimal spec to reproduce the issue? - [x] Have you validated the input using an OpenAPI validator ([example](https://apidevtools.org/swagger-parser/online/))? - [x] Have you [tested with the latest master](https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-to-test-with-the-latest-master-of-openapi-generator) to confirm the issue still exists? - [x] Have you searched for related issues/PRs? - [x] What's the actual output vs expected output? - [ ] [Optional] Sponsorship to speed up the bug fix or feature request ([example](https://github.com/OpenAPITools/openapi-generator/issues/6178)) ##### Description Generation is successful, but for recursive models the imports are missing, when trying to generate from https://github.com/hashintel/hash/blob/main/apps/hash-graph/openapi/openapi.json you can see how in `models/filter.py` the import for `AnyFilter` is missing and how in `models/any_filter.py` the import is missing for `Filter.` ##### openapi-generator version 6.6.0 ##### OpenAPI declaration file content or URL https://github.com/hashintel/hash/blob/main/apps/hash-graph/openapi/openapi.json ##### Generation Details "generatorName": "python-nextgen", "packageName": "hash_openapi", ##### Steps to reproduce Simply generate with the aforementioned schema ##### Related issues/PRs <!-- has a similar issue/PR been reported/opened before? Please do a search in https://github.com/openapitools/openapi-generator/issues?utf8=%E2%9C%93&q=is%3Aissue%20 --> ##### Suggest a fix <!-- if you can't fix the bug yourself, perhaps you can point to what might be causing the problem (line of code or commit), or simply make a suggestion -->
Bug Report Checklist
Description
Generation is successful, but for recursive models the imports are missing, when trying to generate from https://github.com/hashintel/hash/blob/main/apps/hash-graph/openapi/openapi.json you can see how in
models/filter.pythe import forAnyFilteris missing and how inmodels/any_filter.pythe import is missing forFilter.openapi-generator version
6.6.0
OpenAPI declaration file content or URL
https://github.com/hashintel/hash/blob/main/apps/hash-graph/openapi/openapi.json
Generation Details
Steps to reproduce
Simply generate with the aforementioned schema
Related issues/PRs
Suggest a fix