diff --git a/docs/customization.md b/docs/customization.md index 515e3c7f2f5..edd840db7d5 100644 --- a/docs/customization.md +++ b/docs/customization.md @@ -510,6 +510,7 @@ OpenAPI Normalizer transforms the input OpenAPI doc/spec (which may not perfectl - SIMPLIFY_ONEOF_ANYOF - SIMPLIFY_BOOLEAN_ENUM +- REFACTOR_ALLOF_WITH_PROPERTIES_ONLY (default to true since v7.5.0) (One can use `DISABLE_ALL=true` to disable all the rules) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/OpenAPINormalizer.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/OpenAPINormalizer.java index 83277ace932..d3b26362dd1 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/OpenAPINormalizer.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/OpenAPINormalizer.java @@ -147,6 +147,7 @@ public class OpenAPINormalizer { // rules that are default to true rules.put(SIMPLIFY_ONEOF_ANYOF, true); rules.put(SIMPLIFY_BOOLEAN_ENUM, true); + rules.put(REFACTOR_ALLOF_WITH_PROPERTIES_ONLY, true); // default to true since v7.5.0 processRules(inputRules); }