Skip to content
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: set correct Parameter name #729

Merged
merged 1 commit into from
Jan 31, 2023
Merged

fix: set correct Parameter name #729

merged 1 commit into from
Jan 31, 2023

Conversation

isha689
Copy link
Contributor

@isha689 isha689 commented Jan 31, 2023

Closes #728

Parameter name is incorrect for some params in addPostParams() for twilio-java v9.
Related PR: twilio/twilio-oai-generator#419

Checklist

  • I acknowledge that all my contributions will be made under the project's license
  • I have made a material change to the repo (functionality, testing, spelling, grammar)
  • I have read the Contribution Guidelines and my PR follows them
  • I have titled the PR appropriately
  • I have updated my branch with the main branch
  • I have added tests that prove my fix is effective or that my feature works
  • I have added the necessary documentation about the functionality in the appropriate .md file
  • I have added inline documentation to the code I modified

If you have questions, please file a support ticket, or create a GitHub Issue in this repository.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

isha689 added a commit to twilio/twilio-oai-generator that referenced this pull request Jan 31, 2023
<!--
We appreciate the effort for this pull request but before that please
make sure you read the contribution guidelines, then fill out the blanks
below.

Please format the PR title appropriately based on the type of change:
  <type>[!]: <description>
Where <type> is one of: docs, chore, feat, fix, test, misc.
Add a '!' after the type for breaking changes (e.g. feat!: new breaking
feature).

**All third-party contributors acknowledge that any contributions they
provide will be made under the same open-source license that the
open-source project is provided under.**

Please enter each Issue number you are resolving in your PR after one of
the following words [Fixes, Closes, Resolves]. This will auto-link these
issues and close them when this PR is merged!
e.g.
Fixes #1
Closes #2
-->

# Fixes [#728](twilio/twilio-java#728)

In the [yoyodyne
generated](https://github.com/twilio/twilio-java/blob/27834776878ee2ce3d15beeb6680ac4f42a3c60e/src/main/java/com/twilio/rest/conversations/v1/conversation/WebhookCreator.java#L187)
code of twilio-java, the `configurationMethod` and other similar
properties were translated as `Configuration.Method` while in
[oai-generated](https://github.com/twilio/twilio-java/blob/main/src/main/java/com/twilio/rest/conversations/v1/conversation/WebhookCreator.java#L119)
code, these are translated as `ConfigurationMethod`.
These properties if translated as `ConfigurationMethod` are ignored by
REST API.
It should be `Configuration.Method` or it won't work.

Related PR: twilio/twilio-java#729

### Checklist
- [x] I acknowledge that all my contributions will be made under the
project's license
- [ ] Run `make test-docker`
- [ ] Verify affected language:
- [ ] Generate [twilio-go](https://github.com/twilio/twilio-go) from our
[OpenAPI specification](https://github.com/twilio/twilio-oai) using the
[build_twilio_go.py](./examples/build_twilio_go.py) using `python
examples/build_twilio_go.py path/to/twilio-oai/spec/yaml
path/to/twilio-go` and inspect the diff
    - [ ] Run `make test` in `twilio-go`
    - [ ] Create a pull request in `twilio-go`
    - [ ] Provide a link below to the pull request
- [ ] I have made a material change to the repo (functionality, testing,
spelling, grammar)
- [ ] I have read the [Contribution
Guidelines](https://github.com/twilio/twilio-oai-generator/blob/main/CONTRIBUTING.md)
and my PR follows them
- [ ] I have titled the PR appropriately
- [ ] I have updated my branch with the main branch
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added the necessary documentation about the functionality
in the appropriate .md file
- [ ] I have added inline documentation to the code I modified

If you have questions, please create a GitHub Issue in this repository.
@isha689 isha689 merged commit 489ab34 into main Jan 31, 2023
@isha689 isha689 deleted the fix-param-name branch January 31, 2023 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Conversation WebhookCreator Configuration Method always uses POST
2 participants