Skip to content
New issue

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

Fix python-fastapi signature of parameters for method #18691

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

diorcety
Copy link

If the parameter type is an map or a list an invalid python was producted, for example:

body: = Body(None, description=""),

This PR use function postProcessOperationsWithModels of AbstracPythonCodegen in order to use vendorExtensions.x-py-typing

null
);
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the PR.

cc @cbornet (2017/09) @tomplus (2018/10) @krjakbrjak (2023/02) @fa0311 (2023/10) @multani (2023/10)

@multani
Copy link
Contributor

multani commented May 20, 2024

@diorcety do you have a test that you could add to show the problem and how your change fixes it?

@diorcety
Copy link
Author

An integrated test? no for the moment, but a json file yes, the one from grafana: https://github.com/grafana/grafana/blob/main/public/openapi3.json

@wing328
Copy link
Member

wing328 commented May 26, 2024

@diorcety can you please update the test spec modules/openapi-generator/src/test/resources/3_0/python-fastapi/petstore.yaml with a test or 2 and update the samples so that the CI can verify the change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants