Skip to content

Commit

Permalink
fixes #179 got error on generated handler test case
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehu committed Sep 26, 2018
1 parent 49ee5a9 commit a5e54a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ public List<Map<String, Object>> getOperationList(Object model) {
// here are extensions. which will be just a key value pair.
if(entryOps.getKey().startsWith("x-")) continue;
Map<String, Object> flattened = new HashMap<>();
flattened.put("method", entryOps.getKey());
flattened.put("method", entryOps.getKey().toUpperCase());
flattened.put("capMethod", entryOps.getKey().substring(0, 1).toUpperCase() + entryOps.getKey().substring(1));
flattened.put("path", basePath + path);
String normalizedPath = path.replace("{", "").replace("}", "");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public List<Map<String, Any>> getOperationList(Object model) {
// here are extensions. which will be just a key value pair.
if(entryOps.getKey().startsWith("x-")) continue;
Map<String, Any> flattened = new HashMap<>();
flattened.put("method", Any.wrap(entryOps.getKey()));
flattened.put("method", Any.wrap(entryOps.getKey().toUpperCase()));
flattened.put("capMethod", Any.wrap(entryOps.getKey().substring(0, 1).toUpperCase() + entryOps.getKey().substring(1)));
flattened.put("path", Any.wrap(basePath + path));
String normalizedPath = path.replace("{", "").replace("}", "");
Expand Down

0 comments on commit a5e54a7

Please sign in to comment.