Open MelleD opened 4 years ago
Same here:
[main] WARN o.o.codegen.DefaultCodegen - codegenModel is null. Default to UNKNOWN_BASE_TYPE
I had this in my components: requestBodies:
components:
requestBodies:
hashFileBody:
content:
multipart/form-data:
schema:
type: object
...
and used it in some post:requestBody
as a $ref
. It didn't work there. After moving it up to the post:requestBody:
(meaning no $ref
) it worked again. Then, I tried to move only the schema
part down to components:schemas
which worked without any problems.
At the same time, this one here works in components:requestBodies:
components:
requestBodies:
fileUpload:
content:
application/octet-stream:
schema:
type: string
format: binary
To me it looks like the multipart/form-data
does not work as a $ref
to requestBodies
.
Version: 4.3.0-SNAPSHOT Language: dart
I think this is not a "spring-cloud" only issue (as tagged in the title). it affects other languages too.
Bug Report Checklist
Description
When I swap out a multip part in a request body object, the interface is generated incorrectly with UNKNOWN BASE TYPE
openapi-generator version
4.2.0
OpenAPI declaration file content or url
This yaml works
This yaml is not working
Command line used for generation