Skip to content

Commit bd0ab48

Browse files
ruromeroclaude
andcommitted
feat: extend Remediation model for Trustify v3 version ranges
Add VersionRange, RemediationCategory, and RemediationInfo schemas to represent Trustify v3's structured remediation data. The existing fixedIn field is preserved for backward compatibility. Bump API model version from 5.2.0 to 5.3.0. Ref: TC-4521 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 02571f6 commit bd0ab48

1 file changed

Lines changed: 52 additions & 1 deletion

File tree

api/v5/openapi.yaml

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ info:
55
license:
66
name: Apache 2.0
77
url: https://www.apache.org/licenses/LICENSE-2.0.html
8-
version: 5.2.0
8+
version: 5.3.0
99
servers:
1010
- url: /api/v5
1111
description: API v5 endpoint
@@ -539,6 +539,16 @@ components:
539539
type: array
540540
items:
541541
type: string
542+
remediations:
543+
type: array
544+
description: Detailed remediation information from vulnerability advisories
545+
items:
546+
$ref: '#/components/schemas/RemediationInfo'
547+
versionRanges:
548+
type: array
549+
description: Affected version ranges from vulnerability advisories
550+
items:
551+
$ref: '#/components/schemas/VersionRange'
542552
trustedContent:
543553
type: object
544554
properties:
@@ -548,6 +558,47 @@ components:
548558
type: string
549559
justification:
550560
type: string
561+
RemediationCategory:
562+
type: string
563+
description: Category of a remediation action
564+
enum:
565+
- VENDOR_FIX
566+
- WORKAROUND
567+
- MITIGATION
568+
- NO_FIX_PLANNED
569+
- NONE_AVAILABLE
570+
- WILL_NOT_FIX
571+
RemediationInfo:
572+
type: object
573+
description: Detailed remediation information from a vulnerability advisory
574+
properties:
575+
category:
576+
$ref: '#/components/schemas/RemediationCategory'
577+
details:
578+
type: string
579+
description: Human-readable remediation details
580+
url:
581+
type: string
582+
description: URL with more information about the remediation
583+
VersionRange:
584+
type: object
585+
description: Affected version range from a vulnerability advisory. Fields present depend on the range type - Full (all fields), Left (scheme and low bound), Right (scheme and high bound), or Unbounded (empty).
586+
properties:
587+
versionSchemeId:
588+
type: string
589+
description: Version scheme identifier (e.g. semver, rpm, generic)
590+
lowVersion:
591+
type: string
592+
description: Lower bound version
593+
lowInclusive:
594+
type: boolean
595+
description: Whether the lower bound is inclusive
596+
highVersion:
597+
type: string
598+
description: Upper bound version
599+
highInclusive:
600+
type: boolean
601+
description: Whether the upper bound is inclusive
551602
CvssVector:
552603
type: object
553604
properties:

0 commit comments

Comments
 (0)