We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4647e42 + 80f52ea commit 330fc82Copy full SHA for 330fc82
src/main/java/io/swagger/codegen/v3/generators/dotnet/AbstractCSharpCodegen.java
@@ -752,7 +752,7 @@ public String getSchemaType(Schema propertySchema) {
752
753
if (propertySchema.get$ref() != null) {
754
final Schema refSchema = OpenAPIUtil.getSchemaFromName(swaggerType, this.openAPI);
755
- if (refSchema != null && !isObjectSchema(refSchema) && refSchema.getEnum() == null) {
+ if (refSchema != null && !isObjectSchema(refSchema) && !(refSchema instanceof ArraySchema || refSchema instanceof MapSchema) && refSchema.getEnum() == null) {
756
swaggerType = super.getSchemaType(refSchema);
757
}
758
0 commit comments