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

- Fixed a bug in Go generator where temporary url template parameters would not be used preventing the use of raw urls #1311

Merged
merged 3 commits into from
Mar 3, 2022

Conversation

baywet
Copy link
Member

@baywet baywet commented Mar 1, 2022

andrueastman
andrueastman previously approved these changes Mar 2, 2022
Copy link
Member

@andrueastman andrueastman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

andrueastman
andrueastman previously approved these changes Mar 2, 2022
@baywet baywet marked this pull request as draft March 2, 2022 12:48
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 2, 2022

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

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@baywet
Copy link
Member Author

baywet commented Mar 2, 2022

update: I've pushed additional changes to pass the request information to the authentication provider and the request adapter by reference and not by value copy.
passing by value copy had unanticipated side effects that prevented using the request builders with raw urls (see example below)

here is a generation diff

The detailed analysis of the issue can be found here.

response, err := messages.NewMessagesRequestBuilder("https://graph.microsoft.com/v1.0/users/jane@contoso.com/messages", adapter).Get(nil)
// would fail with invalid scheme.

@baywet baywet marked this pull request as ready for review March 2, 2022 17:53
@baywet baywet requested a review from andrueastman March 2, 2022 17:54
@baywet baywet merged commit de55f78 into main Mar 3, 2022
@baywet baywet deleted the bugfix/go-tpl-params branch March 3, 2022 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants