Add rule to set container (array, set, map) to true (#18128)

* add rule to set containter to null

* update doc
This commit is contained in:
William Cheng
2024-03-17 16:37:46 +08:00
committed by GitHub
parent 0b4cf0a027
commit c5ab78575a
4 changed files with 224 additions and 1 deletions

View File

@@ -598,3 +598,10 @@ Example:
```
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o /tmp/java-okhttp/ --openapi-normalizer FILTER="operationId:addPet|getPetById"
```
- `SET_CONTAINER_TO_NULLABLE`: When set to `array|set|map` (or just `array`) for example, it will set `nullable` in array, set and map to true.
Example:
```
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o /tmp/java-okhttp/ --openapi-normalizer SET_CONTAINER_TO_NULLABLE="array|map"
```