mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-17 15:59:14 +00:00
ModelUtils: isMap only if additionalProperties is a Schema (#410)
Fix for issue #409
This commit is contained in:
@@ -304,7 +304,7 @@ public class ModelUtils {
|
||||
if (schema instanceof MapSchema) {
|
||||
return true;
|
||||
}
|
||||
if (schema.getAdditionalProperties() != null) {
|
||||
if (schema.getAdditionalProperties() instanceof Schema) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user