Skip to content

Commit c0d4e0a

Browse files
committed
chore(response):SP-4085 add VERSION_NOT_FOUND status
1 parent d704c42 commit c0d4e0a

5 files changed

Lines changed: 20 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.30.0] - 2026-02-23
11+
### Added
12+
- Added `VERSION_NOT_FOUND` error code to `ErrorCode` enum for handling cases where a component version is not found
1013

1114
## [0.29.0] - 2026-02-13
1215
### Added
@@ -228,6 +231,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
228231
- Vulnerabilities
229232
- Added REST endpoint support for each service also
230233

234+
[0.30.0]: https://github.com/scanoss/papi/compare/v0.29.0...v0.30.0
231235
[0.29.0]: https://github.com/scanoss/papi/compare/v0.28.0...v0.29.0
232236
[0.28.0]: https://github.com/scanoss/papi/compare/v0.27.0...v0.28.0
233237
[0.27.0]: https://github.com/scanoss/papi/compare/v0.26.0...v0.27.0

api/commonv2/scanoss-common.pb.go

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protobuf/scanoss/api/common/v2/scanoss-common.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,5 +164,8 @@ enum ErrorCode {
164164
NO_INFO = 2;
165165
// The provided semantic version (SemVer) is invalid or malformed
166166
INVALID_SEMVER = 3;
167+
// Component version not found
168+
VERSION_NOT_FOUND = 4;
169+
167170
}
168171

protobuf/scanoss/api/cryptography/v2/scanoss-cryptography.swagger.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,10 +1496,11 @@
14961496
"INVALID_PURL",
14971497
"COMPONENT_NOT_FOUND",
14981498
"NO_INFO",
1499-
"INVALID_SEMVER"
1499+
"INVALID_SEMVER",
1500+
"VERSION_NOT_FOUND"
15001501
],
15011502
"default": "INVALID_PURL",
1502-
"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"
1503+
"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"
15031504
},
15041505
"v2Hint": {
15051506
"type": "object",

protobuf/scanoss/api/vulnerabilities/v2/scanoss-vulnerabilities.swagger.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,10 +708,11 @@
708708
"INVALID_PURL",
709709
"COMPONENT_NOT_FOUND",
710710
"NO_INFO",
711-
"INVALID_SEMVER"
711+
"INVALID_SEMVER",
712+
"VERSION_NOT_FOUND"
712713
],
713714
"default": "INVALID_PURL",
714-
"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"
715+
"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"
715716
},
716717
"v2StatusCode": {
717718
"type": "string",

0 commit comments

Comments
 (0)