From bef1d546fb6054b43c20171e2c3429ada3a750dc Mon Sep 17 00:00:00 2001 From: Athira Sabu <102021496+AsabuHere@users.noreply.github.com> Date: Wed, 22 Nov 2023 16:41:43 +0530 Subject: [PATCH] Go changes to use TwilioCodegenAdapter to find right directory structure --- src/main/java/com/twilio/oai/TwilioGoGenerator.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/twilio/oai/TwilioGoGenerator.java b/src/main/java/com/twilio/oai/TwilioGoGenerator.java index 1e7a60ad3..dcd352347 100644 --- a/src/main/java/com/twilio/oai/TwilioGoGenerator.java +++ b/src/main/java/com/twilio/oai/TwilioGoGenerator.java @@ -182,6 +182,9 @@ public void postProcessParameter(final CodegenParameter parameter) { @Override public void processOpenAPI(final OpenAPI openAPI) { + final String domain = twilioCodegen.getDomainFromOpenAPI(openAPI); + twilioCodegen.setDomain(domain); + directoryStructureService.configure(openAPI); super.processOpenAPI(openAPI); openAPI