-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Closed
Labels
Description
Bug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you validated the input using an OpenAPI validator (example)?
- Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs?
- What's the actual output vs expected output?
- [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
When generating specs with a container type, the behavior of CodegenParameter and CodegenProperty is inconsistent.
- in
CodegenParameterthebaseTyperefers to theitemstype - in
CodegenPropertythebaseTyperefers to the container type (the correct behavior)
e.g. generating modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml with any generator (tested with csharp and dart-dio-next)
- operation
createUsersWithArrayInputhas array ofUseras body parameter
when debugging this:"bodyParam" : { "dataType" : "BuiltList<User>", "baseType" : "User", ... } - Model
NullableClasshas propertyarray_nullable_propwhich is a list of objects
when debugging this:{ "dataType" : "BuiltList<JsonObject>", "datatypeWithEnum" : "BuiltList<JsonObject>", "baseType" : "BuiltList", ... }
openapi-generator version
5.2.1 (latest master commit a7de709)
Generation Details
for dart-dio-next: ./bin/generate-samples.sh bin/configs/dart-dio-next* -- --global-property debugOperations,debugModels > log.txt
for csharp: ./bin/generate-samples.sh bin/configs/other/openapi3/csharp-OpenAPIClientNetStandard.yaml -- --global-property debugOperations,debugModels > log_cs.txt
Reactions are currently unavailable