fastapi-code-generator icon indicating copy to clipboard operation
fastapi-code-generator copied to clipboard

Handle all request parameter types

Open rambobinator opened this issue 4 years ago • 1 comments

Hi,

Thanks for this tool ! I'm trying to infer request parameter type, based on what's inside "in" field in operation's parameters. It appears that only Query parameter type is handled for the moment, is it a known issue ? Willing to help and PR if needed.

rambobinator avatar Apr 02 '21 07:04 rambobinator

@rambobinator
Thank you for creating this issue. And I'm sorry for my late reply.

It appears that only Query parameter type is handled for the moment, is it a known issue ?

Yes, the problem is related to the issue https://github.com/koxudaxi/fastapi-code-generator/issues/104

First, This code-generator depends datamodel-code-generator . Second, I'm working on improving datamodel-code-generator to resolve complex schemas. Third, I have a plan to add a feature to datamodel-code-generator that parsing any request types.

Willing to help and PR if needed.

If you have some OpenAPI files for the test case then, it helps implementation. Thank you!!

koxudaxi avatar Apr 05 '21 15:04 koxudaxi