From 2d2ae435cb0ef7163a102c22ecbfb1e4dd9ae095 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Wed, 26 Nov 2025 17:44:27 +0800 Subject: [PATCH] minor fix documentation for customization --- docs/customization.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/customization.md b/docs/customization.md index ffff0188e96d..3ed8d63b90c8 100644 --- a/docs/customization.md +++ b/docs/customization.md @@ -538,6 +538,7 @@ OpenAPI Normalizer transforms the input OpenAPI doc/spec (which may not perfectl - SIMPLIFY_ONEOF_ANYOF - SIMPLIFY_BOOLEAN_ENUM +- SIMPLIFY_ONEOF_ANYOF_ENUM - REFACTOR_ALLOF_WITH_PROPERTIES_ONLY (One can use `DISABLE_ALL=true` to disable all the rules) @@ -565,8 +566,7 @@ Example: java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/simplifyAnyOfStringAndEnumString_test.yaml -o /tmp/java-okhttp/ --openapi-normalizer SIMPLIFY_ANYOF_STRING_AND_ENUM_STRING=true ``` -- `SIMPLIFY_ONEOF_ANYOF_ENUM`: when set to true, oneOf/anyOf with only enum sub-schemas all containing enum values will be converted to a single enum -This is enabled by default +- `SIMPLIFY_ONEOF_ANYOF_ENUM`: when set to true, oneOf/anyOf with only enum sub-schemas all containing enum values will be converted to a single enum. This is enabled by default. Example: