diff --git a/CHANGELOG.md b/CHANGELOG.md index ffd4cd6..58f8a86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.30.0] - 2026-02-23 +### Added +- Added `VERSION_NOT_FOUND` error code to `ErrorCode` enum for handling cases where a component version is not found ## [0.29.0] - 2026-02-13 ### Added @@ -228,6 +231,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Vulnerabilities - Added REST endpoint support for each service also +[0.30.0]: https://github.com/scanoss/papi/compare/v0.29.0...v0.30.0 [0.29.0]: https://github.com/scanoss/papi/compare/v0.28.0...v0.29.0 [0.28.0]: https://github.com/scanoss/papi/compare/v0.27.0...v0.28.0 [0.27.0]: https://github.com/scanoss/papi/compare/v0.26.0...v0.27.0 diff --git a/api/commonv2/scanoss-common.pb.go b/api/commonv2/scanoss-common.pb.go index 8d873e5..14853f1 100644 --- a/api/commonv2/scanoss-common.pb.go +++ b/api/commonv2/scanoss-common.pb.go @@ -119,6 +119,8 @@ const ( ErrorCode_NO_INFO ErrorCode = 2 // The provided semantic version (SemVer) is invalid or malformed ErrorCode_INVALID_SEMVER ErrorCode = 3 + // Component version not found + ErrorCode_VERSION_NOT_FOUND ErrorCode = 4 ) // Enum value maps for ErrorCode. @@ -128,12 +130,14 @@ var ( 1: "COMPONENT_NOT_FOUND", 2: "NO_INFO", 3: "INVALID_SEMVER", + 4: "VERSION_NOT_FOUND", } ErrorCode_value = map[string]int32{ "INVALID_PURL": 0, "COMPONENT_NOT_FOUND": 1, "NO_INFO": 2, "INVALID_SEMVER": 3, + "VERSION_NOT_FOUND": 4, } ) @@ -734,12 +738,13 @@ const file_scanoss_api_common_v2_scanoss_common_proto_rawDesc = "" + "\x17SUCCEEDED_WITH_WARNINGS\x10\x02\x12\v\n" + "\aWARNING\x10\x03\x12\n" + "\n" + - "\x06FAILED\x10\x04*W\n" + + "\x06FAILED\x10\x04*n\n" + "\tErrorCode\x12\x10\n" + "\fINVALID_PURL\x10\x00\x12\x17\n" + "\x13COMPONENT_NOT_FOUND\x10\x01\x12\v\n" + "\aNO_INFO\x10\x02\x12\x12\n" + - "\x0eINVALID_SEMVER\x10\x03B/Z-github.com/scanoss/papi/api/commonv2;commonv2b\x06proto3" + "\x0eINVALID_SEMVER\x10\x03\x12\x15\n" + + "\x11VERSION_NOT_FOUND\x10\x04B/Z-github.com/scanoss/papi/api/commonv2;commonv2b\x06proto3" var ( file_scanoss_api_common_v2_scanoss_common_proto_rawDescOnce sync.Once diff --git a/protobuf/scanoss/api/common/v2/scanoss-common.proto b/protobuf/scanoss/api/common/v2/scanoss-common.proto index be74e98..ee5445b 100644 --- a/protobuf/scanoss/api/common/v2/scanoss-common.proto +++ b/protobuf/scanoss/api/common/v2/scanoss-common.proto @@ -164,5 +164,8 @@ enum ErrorCode { NO_INFO = 2; // The provided semantic version (SemVer) is invalid or malformed INVALID_SEMVER = 3; + // Component version not found + VERSION_NOT_FOUND = 4; + } diff --git a/protobuf/scanoss/api/cryptography/v2/scanoss-cryptography.swagger.json b/protobuf/scanoss/api/cryptography/v2/scanoss-cryptography.swagger.json index 12f5f48..c3b797b 100644 --- a/protobuf/scanoss/api/cryptography/v2/scanoss-cryptography.swagger.json +++ b/protobuf/scanoss/api/cryptography/v2/scanoss-cryptography.swagger.json @@ -1496,10 +1496,11 @@ "INVALID_PURL", "COMPONENT_NOT_FOUND", "NO_INFO", - "INVALID_SEMVER" + "INVALID_SEMVER", + "VERSION_NOT_FOUND" ], "default": "INVALID_PURL", - "description": "Error code enum for component analysis operations.\nRepresents the various error conditions that can occur during component processing and validation.\n\n - INVALID_PURL: The provided Package URL (PURL) is invalid or malformed\n - COMPONENT_NOT_FOUND: The requested component could not be found in the database\n - NO_INFO: No information is available for the requested component\n - INVALID_SEMVER: The provided semantic version (SemVer) is invalid or malformed" + "description": "Error code enum for component analysis operations.\nRepresents the various error conditions that can occur during component processing and validation.\n\n - INVALID_PURL: The provided Package URL (PURL) is invalid or malformed\n - COMPONENT_NOT_FOUND: The requested component could not be found in the database\n - NO_INFO: No information is available for the requested component\n - INVALID_SEMVER: The provided semantic version (SemVer) is invalid or malformed\n - VERSION_NOT_FOUND: Component version not found" }, "v2Hint": { "type": "object", diff --git a/protobuf/scanoss/api/vulnerabilities/v2/scanoss-vulnerabilities.swagger.json b/protobuf/scanoss/api/vulnerabilities/v2/scanoss-vulnerabilities.swagger.json index 3c7b684..5885db0 100644 --- a/protobuf/scanoss/api/vulnerabilities/v2/scanoss-vulnerabilities.swagger.json +++ b/protobuf/scanoss/api/vulnerabilities/v2/scanoss-vulnerabilities.swagger.json @@ -708,10 +708,11 @@ "INVALID_PURL", "COMPONENT_NOT_FOUND", "NO_INFO", - "INVALID_SEMVER" + "INVALID_SEMVER", + "VERSION_NOT_FOUND" ], "default": "INVALID_PURL", - "description": "Error code enum for component analysis operations.\nRepresents the various error conditions that can occur during component processing and validation.\n\n - INVALID_PURL: The provided Package URL (PURL) is invalid or malformed\n - COMPONENT_NOT_FOUND: The requested component could not be found in the database\n - NO_INFO: No information is available for the requested component\n - INVALID_SEMVER: The provided semantic version (SemVer) is invalid or malformed" + "description": "Error code enum for component analysis operations.\nRepresents the various error conditions that can occur during component processing and validation.\n\n - INVALID_PURL: The provided Package URL (PURL) is invalid or malformed\n - COMPONENT_NOT_FOUND: The requested component could not be found in the database\n - NO_INFO: No information is available for the requested component\n - INVALID_SEMVER: The provided semantic version (SemVer) is invalid or malformed\n - VERSION_NOT_FOUND: Component version not found" }, "v2StatusCode": { "type": "string",