Open bjansen opened 1 year ago
@bjansen thanks for reporting the issue. May I know if you can also perform a git bisect
to identify the commit that causes the issue?
Looks like this one: https://github.com/OpenAPITools/openapi-generator/commit/4cd080762aa4c41d7d83fe7c4cb9d28507038f5d (although I didn't do a bisect)
@bjansen thanks.
@MetroMarv I wonder if you can take a look at this issue when you've time to see if it's caused by https://github.com/OpenAPITools/openapi-generator/commit/4cd080762aa4c41d7d83fe7c4cb9d28507038f5d
It's indeed caused by 4cd0807, but I'd say this is the correct method to fix #14449 (the multipart issue).
However, it looks like the fix introduced a regression with request parameters as mentioned in the above example of this issue. No multipart involved here...
Bug Report Checklist
Description
Since #14449 was fixed,
List<String>
parameters are not mapped correctly inapplication/x-www-form-urlencoded
requests (the controller receives a null value).@RequestPart
does not work, but@RequestParam
did.openapi-generator version
6.4.0 (worked fine in 6.2.1).
OpenAPI declaration file content or url
See reproducer here: https://github.com/bjansen/openapi-generator/commit/a4f52bc0fd032b458b4e614eed74e19e761bcb21#diff-4a3bd04de4c3c2657007483855f41966b5bfc3336abacdc74e13ff838341173b
Relevant spec section:
Generation Details
./bin/generate-samples.sh ./bin/configs/spring-boot.yaml
generates this mapping:The
@RequestPart
annotation does not bind the list correctly (see test inOpenApiGeneratorApplicationTests
of the spring-boot server sample.Steps to reproduce
Related issues/PRs
Suggest a fix