Skip to content

Commit

Permalink
c1
Browse files Browse the repository at this point in the history
  • Loading branch information
sbansla committed Nov 14, 2023
1 parent 7445c28 commit a254878
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/com/twilio/oai/TwilioCodegenAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public String getDomainFromOpenAPI(final OpenAPI openAPI) {
if (url.isPresent() && !url.get().equals(DEFAULT_URL)){
domain = url.get().replaceAll(SERVER_PATTERN, "${domain}");
setDomain(domain);
return domain;
}
}
//fetch domain from server url present in openAPI.paths
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/twilio/oai/TwilioGeneratorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static void setUp() {

@Test
public void launchGenerator() {
final String pathname = "/Users/sbansla/Documents/code/twilio-oai/spec/yaml/twilio_lookups_bulk.yaml";
final String pathname = "/Users/sbansla/Documents/code/twilio-oai/spec/yaml/twilio_content_sdk.yaml";
//final String pathname = "examples/spec/twilio_flex_v1.yaml";
//final String pathname = "examples/spec/twilio_versionless.yaml";
//final String pathname = "/Users/sbansla/Documents/code/twilio-oai/spec/yaml/twilio_content_app.yaml";
Expand Down

0 comments on commit a254878

Please sign in to comment.