You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we return an error if both ecosystem and purl are provided in a query. We should make things consistent with name as well. Context: #1443 (comment).
This also extends a little to version -- if a PURL includes a version and an explicit version parameter is provided as well, that should also be an error.
The text was updated successfully, but these errors were encountered:
Closes#1451
I've added some validations for when the query contains both a
`package.purl` and a `package.name`, and when the `package.purl`
contains a version and there is a redundant `version` included in the
query. In both cases, we're raising a 400 with an error message. Also
I've moved the `ecosystem` validation into `do_query` to keep all the
validations in one place.
---------
Co-authored-by: Andrew Pollock <andrewpollock@users.noreply.github.com>
Currently we return an error if both
ecosystem
andpurl
are provided in a query. We should make things consistent withname
as well. Context: #1443 (comment).This also extends a little to
version
-- if a PURL includes a version and an explicitversion
parameter is provided as well, that should also be an error.The text was updated successfully, but these errors were encountered: