-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: read version and domain from path instead of filename for go #562
Conversation
@@ -78,6 +78,15 @@ public void processOpenAPI(final OpenAPI openAPI) { | |||
param.addExtension(ACCOUNT_SID_VEND_EXT, true); | |||
}); | |||
|
|||
String domain = StringHelper.toSnakeCase(twilioCodegen.getDomainFromOpenAPI(openAPI)); | |||
int lastIndex = domain.lastIndexOf("_api"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a comment here that we are skipping _api for backward compatibility of folder names.
Give example that frontline-api server won't be converted to frontline_api folder name but frontline for backward compatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a comment here that we are skipping _api for backward compatibility of folder names.
Give example that frontline-api server won't be converted to frontline_api folder name but frontline for backward compatibility.
Quality Gate passed for 'twilio-oai-generator-java'Issues Measures |
Quality Gate passed for 'twilio-oai-generator-php'Issues Measures |
Quality Gate passed for 'twilio-oai-generator-ruby'Issues Measures |
Quality Gate passed for 'twilio-oai-generator-python'Issues Measures |
Quality Gate passed for 'twilio-oai-generator-node'Issues Measures |
Quality Gate passed for 'twilio-oai-generator-go'Issues Measures |
Fixes
Fetch version from open api spec paths instead of file name.
A breaking change for go.
Checklist
make test-docker
python examples/build_twilio_go.py path/to/twilio-oai/spec/yaml path/to/twilio-go
and inspect the diffmake test
intwilio-go
twilio-go
If you have questions, please create a GitHub Issue in this repository.