Open qtomlinson opened 2 years ago
License expression:
In the debug console: PATCH call to https://dev-api.clearlydefined.io/curations results in 400
The error in response is
{ "errors": [ [ { "message": "Invalid license in curation", "error": "ae804dcb1b3a49ded12169c694130993c68ced9f licensed.declared with value \"MIT AND Apache-2.0 AND BSD-3-Clause \" is not SPDX compliant" } ] ], "patchesInError": [ { "coordinates": { "type": "git", "provider": "github", "namespace": "gardener", "name": "external-dns-management", "revision": "ae804dcb1b3a49ded12169c694130993c68ced9f" }, "revisions": { "ae804dcb1b3a49ded12169c694130993c68ced9f": { "licensed": { "declared": "MIT AND Apache-2.0 AND BSD-3-Clause " } } } } ] }
The reason that the patch call failed is that there is a trailing space after "BSD-3-Clause" in licensed.declared: "MIT AND Apache-2.0 AND BSD-3-Clause ". Removing the trailing space, the patch call and the curation workflow is successful.
Reproducing Steps:
[{"coordinates":{"type":"git","provider":"github","namespace":"gardener","name":"external-dns-management","revision":"ae804dcb1b3a49ded12169c694130993c68ced9f"},"revisions":{"ae804dcb1b3a49ded12169c694130993c68ced9f":{"licensed":{"declared":"MIT AND Apache-2.0 AND BSD-3-Clause "}}}}]