We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated files have an unknown_base_type import.
7.9.0
The code for the yaml spec can be found here: https://github.com/bbc/tams/tree/main/api
This is a snippet of tests/test_default_controller_impl:
tests/test_default_controller_impl
# coding: utf-8 from fastapi.testclient import TestClient from openapi_server.models.collection_item import CollectionItem # noqa: F401 #from openapi_server.models.one_of_video_flow_audio_flow_data_flow_multi_essence_flow import OneOfVideoFlowAudioFlowDataFlowMultiEssenceFlow # noqa: F401 from openapi_server.models.unknownbasetype import UNKNOWN_BASE_TYPE # noqa: F401 def test_flows_created_post(client: TestClient): """Test case for flows_created_post """ unknown_base_type = openapi_server.UNKNOWN_BASE_TYPE()
build-server-local-fastapi: docker run --user ${USER}:${GROUP} --rm \ -v ${PWD}:/local openapitools/openapi-generator-cli:v${GEN_VER} generate \ --additional-properties=apiNameSuffix=controller_impl \ -t /local/.templates/7.9.0/python_fastapi/.openapi-generator-server/ \ -i /local/openapi.yaml \ -g python-fastapi \ -o /local/python_fastapi/
The text was updated successfully, but these errors were encountered:
thanks for reporting the issue.
can you please test it with the python client generator as well to see if there are similar import issues?
please also use v7.10.0 which is the latest stable version released a few days ago.
Sorry, something went wrong.
Hi, can confirm that this issue still persists with the difference of if in 7.9.0 the generated file is:
then in 7.10.0 it's:
# coding: utf-8 from typing import ClassVar, Dict, List, Tuple # noqa: F401 from openapi_server.models.collection_item import CollectionItem from openapi_server.models.one_of_video_flow_audio_flow_data_flow_multi_essence_flow import OneOfVideoFlowAudioFlowDataFlowMultiEssenceFlow from openapi_server.models.unknownbasetype import UNKNOWN_BASE_TYPE class BaseDefaultControllerImpl: subclasses: ClassVar[Tuple] = () def __init_subclass__(cls, **kwargs): super().__init_subclass__(**kwargs) BaseDefaultControllerImpl.subclasses = BaseDefaultControllerImpl.subclasses + (cls,) async def flows_created_post( self, unknown_base_type: , ) -> None: ...
Thanks for the reply, @wing328
thanks for reporting the issue
should be fixed via #20165
please give it a try later with the latest master or snapshot version when you've time
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
Bug Report Checklist
Description
Generated files have an unknown_base_type import.
openapi-generator version
7.9.0
OpenAPI declaration file content or url
The code for the yaml spec can be found here: https://github.com/bbc/tams/tree/main/api
Generation Details
This is a snippet of
tests/test_default_controller_impl
:Steps to reproduce
The text was updated successfully, but these errors were encountered: