mirror of
				https://github.com/OpenAPITools/openapi-generator.git
				synced 2025-11-04 10:43:44 +00:00 
			
		
		
		
	allow to specify the useOneOfInterfaces option for java (#15042)
This commit is contained in:
		
							parent
							
								
									e852ceceef
								
							
						
					
					
						commit
						8a426b2f4a
					
				@ -65,6 +65,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|sourceFolder|source folder for generated code| |src/main/groovy|
 | 
					|sourceFolder|source folder for generated code| |src/main/groovy|
 | 
				
			||||||
|testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi|
 | 
					|testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi|
 | 
				
			||||||
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
					|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## SUPPORTED VENDOR EXTENSIONS
 | 
					## SUPPORTED VENDOR EXTENSIONS
 | 
				
			||||||
 | 
				
			|||||||
@ -96,6 +96,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
					|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
				
			||||||
|useFeignClientUrl|Whether to generate Feign client with url parameter.| |true|
 | 
					|useFeignClientUrl|Whether to generate Feign client with url parameter.| |true|
 | 
				
			||||||
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
					|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|useOptional|Use Optional container for optional parameters| |false|
 | 
					|useOptional|Use Optional container for optional parameters| |false|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
|useSpringBoot3|Generate code and provide dependencies for use with Spring Boot 3.x. (Use jakarta instead of javax in imports). Enabling this option will also enable `useJakartaEe`.| |false|
 | 
					|useSpringBoot3|Generate code and provide dependencies for use with Spring Boot 3.x. (Use jakarta instead of javax in imports). Enabling this option will also enable `useJakartaEe`.| |false|
 | 
				
			||||||
 | 
				
			|||||||
@ -62,6 +62,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|sourceFolder|source folder for generated code| |src/main/java|
 | 
					|sourceFolder|source folder for generated code| |src/main/java|
 | 
				
			||||||
|testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi|
 | 
					|testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi|
 | 
				
			||||||
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
					|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## SUPPORTED VENDOR EXTENSIONS
 | 
					## SUPPORTED VENDOR EXTENSIONS
 | 
				
			||||||
 | 
				
			|||||||
@ -65,6 +65,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|useAbstractClass|Whether to generate abstract classes for REST API instead of interfaces.| |false|
 | 
					|useAbstractClass|Whether to generate abstract classes for REST API instead of interfaces.| |false|
 | 
				
			||||||
|useBeanValidation|Use Bean Validation| |false|
 | 
					|useBeanValidation|Use Bean Validation| |false|
 | 
				
			||||||
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
					|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## SUPPORTED VENDOR EXTENSIONS
 | 
					## SUPPORTED VENDOR EXTENSIONS
 | 
				
			||||||
 | 
				
			|||||||
@ -67,6 +67,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|sourceFolder|source folder for generated code| |src/gen/java|
 | 
					|sourceFolder|source folder for generated code| |src/gen/java|
 | 
				
			||||||
|testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi|
 | 
					|testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi|
 | 
				
			||||||
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
					|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## SUPPORTED VENDOR EXTENSIONS
 | 
					## SUPPORTED VENDOR EXTENSIONS
 | 
				
			||||||
 | 
				
			|||||||
@ -85,6 +85,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|title|Client service name| |null|
 | 
					|title|Client service name| |null|
 | 
				
			||||||
|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
					|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
				
			||||||
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
					|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|useOptional|Use Optional container for optional parameters| |false|
 | 
					|useOptional|Use Optional container for optional parameters| |false|
 | 
				
			||||||
|visitable|Generate visitor for subtypes with a discriminator| |false|
 | 
					|visitable|Generate visitor for subtypes with a discriminator| |false|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
 | 
				
			|||||||
@ -84,6 +84,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|useAuth|Whether to import authorization and to annotate controller methods accordingly| |true|
 | 
					|useAuth|Whether to import authorization and to annotate controller methods accordingly| |true|
 | 
				
			||||||
|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
					|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
				
			||||||
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
					|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|useOptional|Use Optional container for optional parameters| |false|
 | 
					|useOptional|Use Optional container for optional parameters| |false|
 | 
				
			||||||
|visitable|Generate visitor for subtypes with a discriminator| |false|
 | 
					|visitable|Generate visitor for subtypes with a discriminator| |false|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
 | 
				
			|||||||
@ -72,6 +72,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|title|a title describing the application| |OpenAPI Server|
 | 
					|title|a title describing the application| |OpenAPI Server|
 | 
				
			||||||
|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
					|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
				
			||||||
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
					|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|useTags|use tags for creating interface and controller classnames| |false|
 | 
					|useTags|use tags for creating interface and controller classnames| |false|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -73,6 +73,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi|
 | 
					|testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi|
 | 
				
			||||||
|title|server title name or client service name| |null|
 | 
					|title|server title name or client service name| |null|
 | 
				
			||||||
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
					|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
|zipkinUri|Zipkin URI| |null|
 | 
					|zipkinUri|Zipkin URI| |null|
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -75,6 +75,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
					|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
				
			||||||
|useInterfaces|Makes the controllerImp implements an interface to facilitate automatic completion when updating from version x to y of your spec| |true|
 | 
					|useInterfaces|Makes the controllerImp implements an interface to facilitate automatic completion when updating from version x to y of your spec| |true|
 | 
				
			||||||
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
					|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|useSwaggerUI|Add a route to /api which show your documentation in swagger-ui. Will also import needed dependencies| |true|
 | 
					|useSwaggerUI|Add a route to /api which show your documentation in swagger-ui. Will also import needed dependencies| |true|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
|wrapCalls|Add a wrapper to each controller function to handle things like metrics, response modification, etc..| |true|
 | 
					|wrapCalls|Add a wrapper to each controller function to handle things like metrics, response modification, etc..| |true|
 | 
				
			||||||
 | 
				
			|||||||
@ -67,6 +67,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|sourceFolder|source folder for generated code| |src/main/java|
 | 
					|sourceFolder|source folder for generated code| |src/main/java|
 | 
				
			||||||
|testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi|
 | 
					|testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi|
 | 
				
			||||||
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
					|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## SUPPORTED VENDOR EXTENSIONS
 | 
					## SUPPORTED VENDOR EXTENSIONS
 | 
				
			||||||
 | 
				
			|||||||
@ -67,6 +67,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|sourceFolder|source folder for generated code| |src/main/java|
 | 
					|sourceFolder|source folder for generated code| |src/main/java|
 | 
				
			||||||
|testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi|
 | 
					|testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi|
 | 
				
			||||||
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
					|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## SUPPORTED VENDOR EXTENSIONS
 | 
					## SUPPORTED VENDOR EXTENSIONS
 | 
				
			||||||
 | 
				
			|||||||
@ -69,6 +69,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|sourceFolder|source folder for generated code| |src/main/java|
 | 
					|sourceFolder|source folder for generated code| |src/main/java|
 | 
				
			||||||
|testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi|
 | 
					|testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi|
 | 
				
			||||||
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
					|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|vertxSwaggerRouterVersion|Specify the version of the swagger router library| |null|
 | 
					|vertxSwaggerRouterVersion|Specify the version of the swagger router library| |null|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -87,6 +87,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|useGzipFeature|Send gzip-encoded requests| |false|
 | 
					|useGzipFeature|Send gzip-encoded requests| |false|
 | 
				
			||||||
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
					|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|usePlayWS|Use Play! Async HTTP client (Play WS API)| |false|
 | 
					|usePlayWS|Use Play! Async HTTP client (Play WS API)| |false|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
|useRuntimeException|Use RuntimeException instead of Exception. Only jersey, jersey2, jersey3, okhttp-gson, vertx, microprofile support this option.| |false|
 | 
					|useRuntimeException|Use RuntimeException instead of Exception. Only jersey, jersey2, jersey3, okhttp-gson, vertx, microprofile support this option.| |false|
 | 
				
			||||||
 | 
				
			|||||||
@ -78,6 +78,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|title|a title describing the application| |OpenAPI Server|
 | 
					|title|a title describing the application| |OpenAPI Server|
 | 
				
			||||||
|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
					|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
				
			||||||
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
					|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|useSwaggerAnnotations|Whether to generate Swagger annotations.| |true|
 | 
					|useSwaggerAnnotations|Whether to generate Swagger annotations.| |true|
 | 
				
			||||||
|useTags|use tags for creating interface and controller classnames| |false|
 | 
					|useTags|use tags for creating interface and controller classnames| |false|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
 | 
				
			|||||||
@ -72,6 +72,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|useGzipFeatureForTests|Use Gzip Feature for tests| |false|
 | 
					|useGzipFeatureForTests|Use Gzip Feature for tests| |false|
 | 
				
			||||||
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
					|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
				
			||||||
|useLoggingFeatureForTests|Use Logging Feature for tests| |false|
 | 
					|useLoggingFeatureForTests|Use Logging Feature for tests| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## SUPPORTED VENDOR EXTENSIONS
 | 
					## SUPPORTED VENDOR EXTENSIONS
 | 
				
			||||||
 | 
				
			|||||||
@ -90,6 +90,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|useLoggingFeature|Use Logging Feature| |false|
 | 
					|useLoggingFeature|Use Logging Feature| |false|
 | 
				
			||||||
|useLoggingFeatureForTests|Use Logging Feature for tests| |false|
 | 
					|useLoggingFeatureForTests|Use Logging Feature for tests| |false|
 | 
				
			||||||
|useMultipartFeature|Use Multipart Feature| |false|
 | 
					|useMultipartFeature|Use Multipart Feature| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|useSpringAnnotationConfig|Use Spring Annotation Config| |false|
 | 
					|useSpringAnnotationConfig|Use Spring Annotation Config| |false|
 | 
				
			||||||
|useSwaggerFeature|Use Swagger Feature| |false|
 | 
					|useSwaggerFeature|Use Swagger Feature| |false|
 | 
				
			||||||
|useSwaggerUI|Use Swagger UI| |false|
 | 
					|useSwaggerUI|Use Swagger UI| |false|
 | 
				
			||||||
 | 
				
			|||||||
@ -85,6 +85,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|useLoggingFeature|Use Logging Feature| |false|
 | 
					|useLoggingFeature|Use Logging Feature| |false|
 | 
				
			||||||
|useLoggingFeatureForTests|Use Logging Feature for tests| |false|
 | 
					|useLoggingFeatureForTests|Use Logging Feature for tests| |false|
 | 
				
			||||||
|useMultipartFeature|Use Multipart Feature| |false|
 | 
					|useMultipartFeature|Use Multipart Feature| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|useSpringAnnotationConfig|Use Spring Annotation Config| |false|
 | 
					|useSpringAnnotationConfig|Use Spring Annotation Config| |false|
 | 
				
			||||||
|useSwaggerFeature|Use Swagger Feature| |false|
 | 
					|useSwaggerFeature|Use Swagger Feature| |false|
 | 
				
			||||||
|useSwaggerUI|Use Swagger UI| |false|
 | 
					|useSwaggerUI|Use Swagger UI| |false|
 | 
				
			||||||
 | 
				
			|||||||
@ -73,6 +73,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|title|a title describing the application| |OpenAPI Server|
 | 
					|title|a title describing the application| |OpenAPI Server|
 | 
				
			||||||
|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
					|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
				
			||||||
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
					|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|useTags|use tags for creating interface and controller classnames| |false|
 | 
					|useTags|use tags for creating interface and controller classnames| |false|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -72,6 +72,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|title|a title describing the application| |OpenAPI Server|
 | 
					|title|a title describing the application| |OpenAPI Server|
 | 
				
			||||||
|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
					|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
				
			||||||
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
					|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|useSwaggerFeature|Use dynamic Swagger generator| |false|
 | 
					|useSwaggerFeature|Use dynamic Swagger generator| |false|
 | 
				
			||||||
|useTags|use tags for creating interface and controller classnames| |false|
 | 
					|useTags|use tags for creating interface and controller classnames| |false|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
 | 
				
			|||||||
@ -72,6 +72,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|title|a title describing the application| |OpenAPI Server|
 | 
					|title|a title describing the application| |OpenAPI Server|
 | 
				
			||||||
|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
					|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
				
			||||||
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
					|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|useTags|use tags for creating interface and controller classnames| |false|
 | 
					|useTags|use tags for creating interface and controller classnames| |false|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -78,6 +78,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|title|a title describing the application| |OpenAPI Server|
 | 
					|title|a title describing the application| |OpenAPI Server|
 | 
				
			||||||
|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
					|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
				
			||||||
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
					|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|useSwaggerAnnotations|Whether to generate Swagger annotations.| |true|
 | 
					|useSwaggerAnnotations|Whether to generate Swagger annotations.| |true|
 | 
				
			||||||
|useTags|use tags for creating interface and controller classnames| |false|
 | 
					|useTags|use tags for creating interface and controller classnames| |false|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
 | 
				
			|||||||
@ -89,6 +89,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
				
			|||||||
|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
					|useBeanValidation|Use BeanValidation API annotations| |true|
 | 
				
			||||||
|useFeignClientUrl|Whether to generate Feign client with url parameter.| |true|
 | 
					|useFeignClientUrl|Whether to generate Feign client with url parameter.| |true|
 | 
				
			||||||
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
					|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
 | 
				
			||||||
 | 
					|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|
 | 
				
			||||||
|useOptional|Use Optional container for optional parameters| |false|
 | 
					|useOptional|Use Optional container for optional parameters| |false|
 | 
				
			||||||
|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|
 | 
					|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|
 | 
				
			||||||
|useSpringBoot3|Generate code and provide dependencies for use with Spring Boot 3.x. (Use jakarta instead of javax in imports). Enabling this option will also enable `useJakartaEe`.| |false|
 | 
					|useSpringBoot3|Generate code and provide dependencies for use with Spring Boot 3.x. (Use jakarta instead of javax in imports). Enabling this option will also enable `useJakartaEe`.| |false|
 | 
				
			||||||
 | 
				
			|||||||
@ -88,6 +88,7 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
 | 
				
			|||||||
    public static final String CONTAINER_DEFAULT_TO_NULL = "containerDefaultToNull";
 | 
					    public static final String CONTAINER_DEFAULT_TO_NULL = "containerDefaultToNull";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public static final String CAMEL_CASE_DOLLAR_SIGN = "camelCaseDollarSign";
 | 
					    public static final String CAMEL_CASE_DOLLAR_SIGN = "camelCaseDollarSign";
 | 
				
			||||||
 | 
					    public static final String USE_ONE_OF_INTERFACES = "useOneOfInterfaces";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public static final String DEFAULT_TEST_FOLDER = "${project.build.directory}/generated-test-sources/openapi";
 | 
					    public static final String DEFAULT_TEST_FOLDER = "${project.build.directory}/generated-test-sources/openapi";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -256,6 +257,7 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
 | 
				
			|||||||
        cliOptions.add(CliOption.newBoolean(DISCRIMINATOR_CASE_SENSITIVE, "Whether the discriminator value lookup should be case-sensitive or not. This option only works for Java API client", discriminatorCaseSensitive));
 | 
					        cliOptions.add(CliOption.newBoolean(DISCRIMINATOR_CASE_SENSITIVE, "Whether the discriminator value lookup should be case-sensitive or not. This option only works for Java API client", discriminatorCaseSensitive));
 | 
				
			||||||
        cliOptions.add(CliOption.newBoolean(CodegenConstants.HIDE_GENERATION_TIMESTAMP, CodegenConstants.HIDE_GENERATION_TIMESTAMP_DESC, this.isHideGenerationTimestamp()));
 | 
					        cliOptions.add(CliOption.newBoolean(CodegenConstants.HIDE_GENERATION_TIMESTAMP, CodegenConstants.HIDE_GENERATION_TIMESTAMP_DESC, this.isHideGenerationTimestamp()));
 | 
				
			||||||
        cliOptions.add(CliOption.newBoolean(WITH_XML, "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)"));
 | 
					        cliOptions.add(CliOption.newBoolean(WITH_XML, "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)"));
 | 
				
			||||||
 | 
					        cliOptions.add(CliOption.newBoolean(USE_ONE_OF_INTERFACES, "whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface"));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        CliOption dateLibrary = new CliOption(DATE_LIBRARY, "Option. Date library to use").defaultValue(this.getDateLibrary());
 | 
					        CliOption dateLibrary = new CliOption(DATE_LIBRARY, "Option. Date library to use").defaultValue(this.getDateLibrary());
 | 
				
			||||||
        Map<String, String> dateOptions = new HashMap<>();
 | 
					        Map<String, String> dateOptions = new HashMap<>();
 | 
				
			||||||
@ -574,6 +576,10 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
 | 
				
			|||||||
            this.setCamelCaseDollarSign(Boolean.parseBoolean(additionalProperties.get(CAMEL_CASE_DOLLAR_SIGN).toString()));
 | 
					            this.setCamelCaseDollarSign(Boolean.parseBoolean(additionalProperties.get(CAMEL_CASE_DOLLAR_SIGN).toString()));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if (additionalProperties.containsKey(USE_ONE_OF_INTERFACES)) {
 | 
				
			||||||
 | 
					            this.setUseOneOfInterfaces(Boolean.parseBoolean(additionalProperties.get(USE_ONE_OF_INTERFACES).toString()));
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (!StringUtils.isEmpty(parentGroupId) && !StringUtils.isEmpty(parentArtifactId) && !StringUtils.isEmpty(parentVersion)) {
 | 
					        if (!StringUtils.isEmpty(parentGroupId) && !StringUtils.isEmpty(parentArtifactId) && !StringUtils.isEmpty(parentVersion)) {
 | 
				
			||||||
            additionalProperties.put("parentOverridden", true);
 | 
					            additionalProperties.put("parentOverridden", true);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user