Skip to content

Commit

Permalink
Finished paramter styling(query,path,header,cookie) (#8587)
Browse files Browse the repository at this point in the history
  • Loading branch information
basyskom-dege authored Feb 8, 2021
1 parent df107e2 commit 578420c
Show file tree
Hide file tree
Showing 10 changed files with 819 additions and 68 deletions.
2 changes: 1 addition & 1 deletion docs/generators/cpp-qt5-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|XMLStructureDefinitions|✗|OAS2,OAS3
|MultiServer|✓|OAS3
|ParameterizedServer|✓|OAS3
|ParameterStyling||OAS3
|ParameterStyling||OAS3
|Callbacks|✗|OAS3
|LinkObjects|✗|OAS3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public CppQt5ClientCodegen() {
.includeSecurityFeatures(SecurityFeature.BasicAuth)
.includeSecurityFeatures(SecurityFeature.ApiKey)
.includeSecurityFeatures(SecurityFeature.BearerToken)
.includeGlobalFeatures(GlobalFeature.ParameterStyling)
);

// set the output folder here
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public:
void enableRequestCompression();
void enableResponseCompression();
void abortRequests();
QString getParamStylePrefix(QString style);
QString getParamStyleSuffix(QString style);
QString getParamStyleDelimiter(QString style, QString name, bool isExplode);
{{#operations}}{{#operation}}
void {{nickname}}({{#allParams}}const {{{dataType}}} &{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{/operation}}{{/operations}}

Expand Down
Loading

0 comments on commit 578420c

Please sign in to comment.