Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for CVE schema 5.1.0 and CVE Services 2.3.0 #80

Merged
merged 3 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

A library and a command line interface for the CVE Services API.

**Note**: version 1.3.0 of cvelib is compatible with CVE Services 2.2.0.
**Note**: version 1.4.0 of cvelib is compatible with CVE Services 2.2.1 and CVE JSON schema 5.1.0.

## Requirements

- Python version 3.7 or greater
- Python version 3.8 or greater
- [pip](https://pypi.org/project/pip/)

## Installation
Expand Down
8 changes: 4 additions & 4 deletions cvelib/cve_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ def __reduce__(self):

class CveRecord:
class Schemas(Constants):
CNA_PUBLISHED = next(SCHEMA_DIR.glob("published_cna_container_*.json"))
CNA_REJECTED = next(SCHEMA_DIR.glob("rejected_cna_container_*.json"))
ADP = next(SCHEMA_DIR.glob("adp_container_*.json"))
V5_SCHEMA = next(SCHEMA_DIR.glob("CVE_JSON_5.0_bundled_*.json"))
CNA_PUBLISHED = next(SCHEMA_DIR.glob("CVE_JSON_cnaPublishedContainer_*.json"))
CNA_REJECTED = next(SCHEMA_DIR.glob("CVE_JSON_cnaRejectedContainer_*.json"))
ADP = next(SCHEMA_DIR.glob("CVE_JSON_adpContainer_*.json"))
V5_SCHEMA = next(SCHEMA_DIR.glob("CVE_JSON_bundled_*.json"))

@classmethod
def validate(cls, cve_json: dict, schema_path: Optional[str] = None) -> None:
Expand Down
Loading
Loading