Skip to content

Commit

Permalink
Merge pull request #17 from gcmurphy/fix/commit-test-failing
Browse files Browse the repository at this point in the history
fix client test failures
  • Loading branch information
gcmurphy authored Mar 1, 2024
2 parents 17f4e2b + 975898b commit b4f9601
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ pub enum Ecosystem {
AlpineV3_16,
#[serde(rename = "Alpine:v3.17")]
AlpineV3_17,
#[serde(rename = "Alpine:v3.18")]
AlpineV3_18,
#[serde(rename = "Alpine:v3.19")]
AlpineV3_19,
#[serde(rename = "Alpine:v3.2")]
AlpineV3_2,
#[serde(rename = "Alpine:v3.3")]
Expand Down Expand Up @@ -190,7 +194,8 @@ pub struct Range {
#[derive(Debug, Serialize, Deserialize)]
pub struct Affected {
/// The package that is affected by the vulnerability
pub package: Package,
#[serde(skip_serializing_if = "Option::is_none")]
pub package: Option<Package>,

/// This `severity` field applies to a specific package, in cases where affected
/// packages have differing severities for the same vulnerability. If any package
Expand Down

0 comments on commit b4f9601

Please sign in to comment.