Skip to content

Commit

Permalink
[ENG-2008] Generate Composio Ruby SDK (#778)
Browse files Browse the repository at this point in the history
* add composio-sdks

* don't escape the pattern in Ruby SDK
  • Loading branch information
dphuang2 authored Aug 24, 2024
1 parent 34fc8db commit 9fadf0c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,6 @@
[submodule "generator/konfig-AnyCodable"]
path = generator/konfig-AnyCodable
url = https://github.com/Flight-School/AnyCodable.git
[submodule "customers/composio/composio-sdks"]
path = customers/composio/composio-sdks
url = https://github.com/konfig-dev/composio-sdks.git
1 change: 1 addition & 0 deletions customers/composio/composio-sdks
Submodule composio-sdks added at 8bb561
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,19 @@ public String toRegularExpression(String pattern) {
return addRegularExpressionDelimiter(pattern);
}

@Override
public String addRegularExpressionDelimiter(String pattern) {
if (StringUtils.isEmpty(pattern)) {
return pattern;
}

if (!pattern.matches("^/.*")) {
return "/" + pattern + "/";
}

return pattern;
}

@Override
public String toParamName(String name) {
// should be the same as variable name
Expand Down

0 comments on commit 9fadf0c

Please sign in to comment.