You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/generators/jaxrs-cxf-cdi.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,10 +82,10 @@ These options may be applied as additional-properties (cli) or configOptions (pl
82
82
|title|a title describing the application||OpenAPI Server|
83
83
|useBeanValidation|Use BeanValidation API annotations||true|
84
84
|useJakartaEe|whether to use Jakarta EE namespace instead of javax||false|
85
+
|useJakartaSecurityAnnotation|Whether to generate Jakarta security annotations (@RolesAllowed, @PermitAll). Currently only supported when library is set to quarkus.||false|
85
86
|useMicroProfileOpenAPIAnnotations|Whether to generate Microprofile OpenAPI annotations. Only valid when library is set to quarkus.||false|
86
87
|useMutiny|Whether to use Smallrye Mutiny instead of CompletionStage for asynchronous computation. Only valid when library is set to quarkus.||false|
87
88
|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|
88
-
|useQuarkusSecurityAnnotations|Whether to generate Quarkus security annotations (@Authenticated, @RolesAllowed, @PermitAll). Only valid when library is set to quarkus.||false|
89
89
|useSwaggerAnnotations|Whether to generate Swagger annotations.||true|
90
90
|useSwaggerV3Annotations|Whether to generate Swagger v3 (OpenAPI v3) annotations.||false|
91
91
|useTags|use tags for creating interface and controller classnames||false|
Copy file name to clipboardExpand all lines: docs/generators/jaxrs-spec.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,10 +83,10 @@ These options may be applied as additional-properties (cli) or configOptions (pl
83
83
|title|a title describing the application||OpenAPI Server|
84
84
|useBeanValidation|Use BeanValidation API annotations||true|
85
85
|useJakartaEe|whether to use Jakarta EE namespace instead of javax||false|
86
+
|useJakartaSecurityAnnotation|Whether to generate Jakarta security annotations (@RolesAllowed, @PermitAll). Currently only supported when library is set to quarkus.||false|
86
87
|useMicroProfileOpenAPIAnnotations|Whether to generate Microprofile OpenAPI annotations. Only valid when library is set to quarkus.||false|
87
88
|useMutiny|Whether to use Smallrye Mutiny instead of CompletionStage for asynchronous computation. Only valid when library is set to quarkus.||false|
88
89
|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|
89
-
|useQuarkusSecurityAnnotations|Whether to generate Quarkus security annotations (@Authenticated, @RolesAllowed, @PermitAll). Only valid when library is set to quarkus.||false|
90
90
|useSwaggerAnnotations|Whether to generate Swagger annotations.||true|
91
91
|useSwaggerV3Annotations|Whether to generate Swagger v3 (OpenAPI v3) annotations.||false|
92
92
|useTags|use tags for creating interface and controller classnames||false|
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaJAXRSSpecServerCodegen.java
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ public class JavaJAXRSSpecServerCodegen extends AbstractJavaJAXRSServerCodegen {
@@ -149,7 +149,7 @@ public JavaJAXRSSpecServerCodegen() {
149
149
cliOptions.add(CliOption.newString(OPEN_API_SPEC_FILE_LOCATION, "Location where the file containing the spec will be generated in the output folder. No file generated when set to null or empty string."));
cliOptions.add(CliOption.newBoolean(USE_MUTINY, "Whether to use Smallrye Mutiny instead of CompletionStage for asynchronous computation. Only valid when library is set to quarkus.", useMutiny));
152
-
cliOptions.add(CliOption.newBoolean(USE_QUARKUS_SECURITY_ANNOTATIONS, "Whether to generate Quarkus security annotations (@Authenticated, @RolesAllowed, @PermitAll). Only valid when library is set to quarkus.", useQuarkusSecurityAnnotations));
152
+
cliOptions.add(CliOption.newBoolean(USE_JAKARTA_SECURITY_ANNOTATION, "Whether to generate Jakarta security annotations (@RolesAllowed, @PermitAll). Currently only supported when library is set to quarkus.", useJakartaSecurity));
153
153
cliOptions.add(CliOption.newBoolean(GENERATE_JSON_CREATOR, "Whether to generate @JsonCreator constructor for required properties.", generateJsonCreator));
154
154
}
155
155
@@ -193,7 +193,7 @@ public void processOpts() {
193
193
}
194
194
195
195
if (QUARKUS_LIBRARY.equals(library)) {
196
-
convertPropertyToBooleanAndWriteBack(USE_QUARKUS_SECURITY_ANNOTATIONS, value -> useQuarkusSecurityAnnotations = value);
196
+
convertPropertyToBooleanAndWriteBack(USE_JAKARTA_SECURITY_ANNOTATION, value -> useJakartaSecurity = value);
public {{#supportAsync}}{{#useMutiny}}Uni{{/useMutiny}}{{^useMutiny}}CompletionStage{{/useMutiny}}<{{/supportAsync}}{{#returnJBossResponse}}{{>returnResponseTypeInterface}}{{/returnJBossResponse}}{{^returnJBossResponse}}Response{{/returnJBossResponse}}{{#supportAsync}}>{{/supportAsync}} {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>cookieParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{^-last}},{{/-last}}{{/allParams}}) {
0 commit comments