Skip to content

Commit e016c41

Browse files
committed
remove check in map schema
1 parent 2ea7720 commit e016c41

File tree

1 file changed

+5
-5
lines changed
  • modules/openapi-generator/src/main/java/org/openapitools/codegen/utils

1 file changed

+5
-5
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/ModelUtils.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -439,11 +439,11 @@ public static boolean isComposedSchema(Schema schema) {
439439
* @return true if the specified schema is a Map schema.
440440
*/
441441
public static boolean isMapSchema(Schema schema) {
442-
// make sure it's not free form object first
443-
if (isFreeFormObject(schema)) {
444-
// to cover `additionalProperties: {}`
445-
return false;
446-
}
442+
// // make sure it's not free form object first
443+
// if (isFreeFormObject(schema)) {
444+
// // to cover `additionalProperties: {}`
445+
// return false;
446+
// }
447447

448448
if (schema instanceof MapSchema) {
449449
return true;

0 commit comments

Comments
 (0)