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

Snippet Generation Bug - Go #2228

Closed
rkodev opened this issue Oct 24, 2024 · 0 comments · Fixed by #2260
Closed

Snippet Generation Bug - Go #2228

rkodev opened this issue Oct 24, 2024 · 0 comments · Fixed by #2260
Assignees

Comments

@rkodev
Copy link
Contributor

rkodev commented Oct 24, 2024

Describe the bug
Some snippets in Go are generated with a bug as reported here

generated code

requestParameters := &graphusers.UserItemMailFolderItemMessagesDeltaWithRequestBuilderGetQueryParameters{
ChangeType: &requestChangeType,
Select: [] string {"subject","from","isRead","body","receivedDateTime"},
}
configuration := &graphusers.UserItemMailFolderItemMessagesDeltaWithRequestBuilderGetRequestConfiguration{
Headers: headers,
QueryParameters: requestParameters,
}

To Reproduce
Steps to reproduce the behavior:
Use Graph Explorer link with the example https://graph.microsoft.com/v1.0/users/{id}/mailFolders('inbox')/messages/delta?changeType=created&$select=subject,from,isRead,body,receivedDateTime

Expected behavior
should generate

	requestParameters := &graphusers.ItemMailFoldersItemMessagesDeltaRequestBuilderGetQueryParameters{
		ChangeType: &requestChangeType,
		Select:     []string{"subject", "from", "isRead", "body", "receivedDateTime"},
	}
	configuration := &graphusers.ItemMailFoldersItemMessagesDeltaRequestBuilderGetRequestConfiguration{
		Headers:         headers,
		QueryParameters: requestParameters,
	}
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 a pull request may close this issue.

1 participant