ModelUtils: isMap only if additionalProperties is a Schema (#410)

Fix for issue #409
This commit is contained in:
Jérémie Bresson
2018-07-01 07:31:36 +02:00
committed by GitHub
parent 8e648e4d95
commit a02b313b89
2 changed files with 47 additions and 1 deletions

View File

@@ -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;