Skip to content

Conversation

@cuixq
Copy link
Contributor

@cuixq cuixq commented Nov 5, 2025

This PR fixes a bug in the ExperimentalDetermineVersion function.

Previously, the entire api.DetermineVersionParameters struct was passed as the request body, however the API endpoint expects the nested Query object instead. This change fixes it by passing query.Query to the request, aligning it with the intended API usage.

The bug was not caught in the test because we don't have actual testing for it... https://github.com/google/osv.dev/blob/master/bindings/go/osvdev/osvdev_test.go#L422

@cuixq cuixq changed the title fix(bindings): use correct query parameter for DetermineVersion endpoint fix(bindings): use correct query parameter for DetermineVersion endpoint Nov 5, 2025
@cuixq cuixq marked this pull request as ready for review November 5, 2025 23:23
michaelkedar
michaelkedar previously approved these changes Nov 5, 2025
Ly-Joey
Ly-Joey previously approved these changes Nov 5, 2025
@cuixq cuixq dismissed stale reviews from Ly-Joey and michaelkedar via effb278 November 5, 2025 23:27
@cuixq cuixq merged commit fc2197e into google:master Nov 5, 2025
17 checks passed
@cuixq cuixq deleted the fix branch November 5, 2025 23:33
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.

3 participants