Skip to content

Commit 330fc82

Browse files
authored
Merge pull request #784 from swagger-api/codegen_issue_10240
fixed list type issue
2 parents 4647e42 + 80f52ea commit 330fc82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/swagger/codegen/v3/generators/dotnet/AbstractCSharpCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ public String getSchemaType(Schema propertySchema) {
752752

753753
if (propertySchema.get$ref() != null) {
754754
final Schema refSchema = OpenAPIUtil.getSchemaFromName(swaggerType, this.openAPI);
755-
if (refSchema != null && !isObjectSchema(refSchema) && refSchema.getEnum() == null) {
755+
if (refSchema != null && !isObjectSchema(refSchema) && !(refSchema instanceof ArraySchema || refSchema instanceof MapSchema) && refSchema.getEnum() == null) {
756756
swaggerType = super.getSchemaType(refSchema);
757757
}
758758
}

0 commit comments

Comments
 (0)