Skip to content

Commit

Permalink
Merge pull request #773 from TG1999/changelog/api
Browse files Browse the repository at this point in the history
Add changelog
  • Loading branch information
pombredanne authored Jun 17, 2022
2 parents b5caea3 + 5b23597 commit 8ccb202
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
16 changes: 15 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,21 @@ Version v30.0.0

- Add support for nix as a Linux deployment target.

- Lookup vulnerabilities from CPE
- Lookup vulnerabilities from CPE through API

- Breaking Changes at API level
- /api/vulnerabilities
- Replace `resolved_packages` by `fixed_packages`
- Replace `unresolved_packages` by `affected_packages`
- Replace `url` by `reference_url` in the reference list
- /api/packages
- Replace `unresolved_vulnerabilities` by `affected_by_vulnerabilities`
- Replace `resolved_vulnerabilities` by `fixing_vulnerabilities`
- Replace `url` by `reference_url` in the reference list

- Add alias to the /api/vulnerabilities

- Lookup vulnerabilities from aliases



Expand Down
18 changes: 9 additions & 9 deletions vulnerablecode/static/api_doc/api_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,12 @@ components:
type: string
format: uri
readOnly: true
unresolved_vulnerabilities:
affected_by_vulnerabilities:
type: array
items:
$ref: '#/components/schemas/MinimalVulnerability'
readOnly: true
resolved_vulnerabilities:
fixing_vulnerabilities:
type: array
items:
$ref: '#/components/schemas/MinimalVulnerability'
Expand Down Expand Up @@ -306,10 +306,10 @@ components:
- name
- namespace
- purl
- resolved_vulnerabilities
- fixing_vulnerabilities
- subpath
- type
- unresolved_vulnerabilities
- affected_by_vulnerabilities
- url
- version
PaginatedPackageList:
Expand Down Expand Up @@ -374,12 +374,12 @@ components:
type: string
format: uri
readOnly: true
resolved_packages:
fixed_packages:
type: array
items:
$ref: '#/components/schemas/MinimalPackage'
readOnly: true
unresolved_packages:
affected_packages:
type: array
items:
$ref: '#/components/schemas/MinimalPackage'
Expand Down Expand Up @@ -407,8 +407,8 @@ components:
description: Summary of the vulnerability
required:
- references
- resolved_packages
- unresolved_packages
- fixed_packages
- affected_packages
- url
- vulnerability_id
VulnerabilityReference:
Expand All @@ -418,7 +418,7 @@ components:
type: string
description: Reference ID, eg:DSA-4465-1
maxLength: 50
url:
reference_url:
type: string
format: uri
description: URL of Vulnerability data
Expand Down

0 comments on commit 8ccb202

Please sign in to comment.