Skip to content

Commit c55bee1

Browse files
[Qt][C++] Updated cpp-qt5-client doc (#8251)
* Update cpp-qt5-client.md Added missing security feature support in the documentation * added missing security features in doc
1 parent 55a21bc commit c55bee1

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docs/generators/cpp-qt5-client.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,10 @@ These options may be applied as additional-properties (cli) or configOptions (pl
232232
### Security Feature
233233
| Name | Supported | Defined By |
234234
| ---- | --------- | ---------- |
235-
|BasicAuth||OAS2,OAS3
236-
|ApiKey||OAS2,OAS3
235+
|BasicAuth||OAS2,OAS3
236+
|ApiKey||OAS2,OAS3
237237
|OpenIDConnect|✗|OAS3
238-
|BearerToken||OAS3
238+
|BearerToken||OAS3
239239
|OAuth2_Implicit|✗|OAS2,OAS3
240240
|OAuth2_Password|✗|OAS2,OAS3
241241
|OAuth2_ClientCredentials|✗|OAS2,OAS3

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CppQt5ClientCodegen.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.openapitools.codegen.SupportingFile;
2424
import org.openapitools.codegen.meta.features.DocumentationFeature;
2525
import org.openapitools.codegen.meta.features.GlobalFeature;
26+
import org.openapitools.codegen.meta.features.SecurityFeature;
2627

2728
import java.io.File;
2829

@@ -42,6 +43,9 @@ public CppQt5ClientCodegen() {
4243
.includeDocumentationFeatures(DocumentationFeature.Readme)
4344
.includeGlobalFeatures(GlobalFeature.ParameterizedServer)
4445
.includeGlobalFeatures(GlobalFeature.MultiServer)
46+
.includeSecurityFeatures(SecurityFeature.BasicAuth)
47+
.includeSecurityFeatures(SecurityFeature.ApiKey)
48+
.includeSecurityFeatures(SecurityFeature.BearerToken)
4549
);
4650

4751
// set the output folder here

0 commit comments

Comments
 (0)