Skip to content

Commit 0807555

Browse files
committed
fixed list type issue
1 parent 5a92b98 commit 0807555

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)