Skip to content

Commit

Permalink
fix group parameter logic (#1779)
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 authored Dec 30, 2018
1 parent 7cee999 commit 2e727f6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,7 @@ public int compare(CodegenOperation one, CodegenOperation another) {
@SuppressWarnings("unchecked")
List<CodegenOperation> operations = (List<CodegenOperation>) objectMap.get("operation");
for (CodegenOperation op : operations) {
op.httpMethod = op.httpMethod.toLowerCase(Locale.ROOT);
if (!op.vendorExtensions.containsKey("x-group-parameters")) {
if (isGroupParameters && !op.vendorExtensions.containsKey("x-group-parameters")) {
op.vendorExtensions.put("x-group-parameters", Boolean.TRUE);
}
}
Expand Down

0 comments on commit 2e727f6

Please sign in to comment.