Skip to content

Commit 09ed65d

Browse files
committed
Update docs for useOneOfPojo option
1 parent 5651547 commit 09ed65d

26 files changed

+26
-0
lines changed

docs/generators/groovy.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
7070
|testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi|
7171
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
7272
|useOneOfInterfaces|whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface| |false|
73+
|useOneOfPojo|Generate real POJO classes for oneOf schemas instead of wrapper models| |false|
7374
|withXml|whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)| |false|
7475

7576
## SUPPORTED VENDOR EXTENSIONS

docs/generators/java-camel.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
114114
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
115115
|useJspecify|Use Jspecify for null checks| |false|
116116
|useOneOfInterfaces|whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface| |true|
117+
|useOneOfPojo|Generate real POJO classes for oneOf schemas instead of wrapper models| |false|
117118
|useOptional|Use Optional container for optional parameters| |false|
118119
|useResponseEntity|Use the `ResponseEntity` type to wrap return values of generated API methods. If disabled, method are annotated using a `@ResponseStatus` annotation, which has the status of the first response declared in the Api definition| |true|
119120
|useSealed|Whether to generate sealed model interfaces and classes| |false|

docs/generators/java-dubbo.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
8282
|useGenericResponse|Use generic response wrapper| |false|
8383
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
8484
|useOneOfInterfaces|whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface| |false|
85+
|useOneOfPojo|Generate real POJO classes for oneOf schemas instead of wrapper models| |false|
8586
|useTags|use tags for creating interface and controller classnames| |true|
8687
|withXml|whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)| |false|
8788

docs/generators/java-helidon-client.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
6767
|testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi|
6868
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
6969
|useOneOfInterfaces|whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface| |false|
70+
|useOneOfPojo|Generate real POJO classes for oneOf schemas instead of wrapper models| |false|
7071
|withXml|whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)| |false|
7172
|x-helidon-groupBy|Selects how to group operations into APIs|<dl><dt>**tags**</dt><dd>Use the 'tags' settings on each operation</dd><dt>**first-path-segment**</dt><dd>Use the first segment of the path</dd></dl>|tags|
7273
|x-helidon-useOptional|Wrap optional parameters in an Optional (Helidon 4 and later)| |true|

docs/generators/java-helidon-server.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
7070
|useBeanValidation|Use Bean Validation| |false|
7171
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
7272
|useOneOfInterfaces|whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface| |false|
73+
|useOneOfPojo|Generate real POJO classes for oneOf schemas instead of wrapper models| |false|
7374
|withXml|whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)| |false|
7475
|x-helidon-groupBy|Selects how to group operations into APIs|<dl><dt>**tags**</dt><dd>Use the 'tags' settings on each operation</dd><dt>**first-path-segment**</dt><dd>Use the first segment of the path</dd></dl>|tags|
7576
|x-helidon-useOptional|Wrap optional parameters in an Optional (Helidon 4 and later)| |true|

docs/generators/java-inflector.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
7272
|testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi|
7373
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
7474
|useOneOfInterfaces|whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface| |false|
75+
|useOneOfPojo|Generate real POJO classes for oneOf schemas instead of wrapper models| |false|
7576
|withXml|whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)| |false|
7677

7778
## SUPPORTED VENDOR EXTENSIONS

docs/generators/java-micronaut-client.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
9090
|useBeanValidation|Use BeanValidation API annotations| |true|
9191
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
9292
|useOneOfInterfaces|whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface| |false|
93+
|useOneOfPojo|Generate real POJO classes for oneOf schemas instead of wrapper models| |false|
9394
|useOptional|Use Optional container for optional parameters| |false|
9495
|visitable|Generate visitor for subtypes with a discriminator| |false|
9596
|withXml|whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)| |false|

docs/generators/java-micronaut-server.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
8989
|useBeanValidation|Use BeanValidation API annotations| |true|
9090
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
9191
|useOneOfInterfaces|whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface| |false|
92+
|useOneOfPojo|Generate real POJO classes for oneOf schemas instead of wrapper models| |false|
9293
|useOptional|Use Optional container for optional parameters| |false|
9394
|visitable|Generate visitor for subtypes with a discriminator| |false|
9495
|withXml|whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)| |false|

docs/generators/java-microprofile.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
102102
|useJspecify|Use Jspecify for null checks. Only supported for [native, restclient, resttemplate, webclient]| |false|
103103
|useOneOfDiscriminatorLookup|Use the discriminator's mapping in oneOf to speed up the model lookup. IMPORTANT: Validation (e.g. one and only one match in oneOf's schemas) will be skipped. Only jersey2, jersey3, native, okhttp-gson support this option.| |false|
104104
|useOneOfInterfaces|whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface| |false|
105+
|useOneOfPojo|Generate real POJO classes for oneOf schemas instead of wrapper models| |false|
105106
|usePlayWS|Use Play! Async HTTP client (Play WS API)| |false|
106107
|useReflectionEqualsHashCode|Use org.apache.commons.lang3.builder for equals and hashCode in the models. WARNING: This will fail under a security manager, unless the appropriate permissions are set up correctly and also there's potential performance impact.| |false|
107108
|useRuntimeException|Use RuntimeException instead of Exception. Only jersey2, jersey3, okhttp-gson, vertx, microprofile support this option.| |false|

docs/generators/java-msf4j.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
7777
|useBeanValidation|Use BeanValidation API annotations| |true|
7878
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
7979
|useOneOfInterfaces|whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface| |false|
80+
|useOneOfPojo|Generate real POJO classes for oneOf schemas instead of wrapper models| |false|
8081
|useTags|use tags for creating interface and controller classnames| |false|
8182
|withXml|whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)| |false|
8283

0 commit comments

Comments
 (0)