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

[selenium manager]: fix edge artifact deserialisation #14859

Merged
merged 5 commits into from
Dec 11, 2024
Merged
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
30 changes: 15 additions & 15 deletions rust/src/edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,42 +555,42 @@ impl SeleniumManager for EdgeManager {

#[derive(Serialize, Deserialize, Debug)]
pub struct EdgeProduct {
#[serde(rename = "Product")]
#[serde(rename = "Product", alias = "product")]
bonigarcia marked this conversation as resolved.
Show resolved Hide resolved
pub product: String,
#[serde(rename = "Releases")]
#[serde(rename = "Releases", alias = "releases")]
pub releases: Vec<Release>,
}

#[derive(Serialize, Deserialize, Debug)]
pub struct Release {
#[serde(rename = "ReleaseId")]
#[serde(rename = "ReleaseId", alias = "releaseId")]
pub release_id: u32,
#[serde(rename = "Platform")]
#[serde(rename = "Platform", alias = "platform")]
pub platform: String,
#[serde(rename = "Architecture")]
#[serde(rename = "Architecture", alias = "architecture")]
pub architecture: String,
#[serde(rename = "CVEs")]
#[serde(rename = "CVEs", alias = "cves")]
pub cves: Vec<String>,
#[serde(rename = "ProductVersion")]
#[serde(rename = "ProductVersion", alias = "productVersion")]
pub product_version: String,
#[serde(rename = "Artifacts")]
#[serde(rename = "Artifacts", alias = "artifacts")]
pub artifacts: Vec<Artifact>,
#[serde(rename = "PublishedTime")]
#[serde(rename = "PublishedTime", alias = "publishedTime")]
pub published_time: String,
#[serde(rename = "ExpectedExpiryDate")]
#[serde(rename = "ExpectedExpiryDate", alias = "expectedExpiryDate")]
pub expected_expiry_date: String,
}

#[derive(Serialize, Deserialize, Debug)]
pub struct Artifact {
#[serde(rename = "ArtifactName")]
#[serde(rename = "ArtifactName", alias = "artifactName")]
pub artifact_name: String,
#[serde(rename = "Location")]
#[serde(rename = "Location", alias = "location")]
pub location: String,
#[serde(rename = "Hash")]
#[serde(rename = "Hash", alias = "hash")]
pub hash: String,
#[serde(rename = "HashAlgorithm")]
#[serde(rename = "HashAlgorithm", alias = "hashAlgorithm")]
pub hash_algorithm: String,
#[serde(rename = "SizeInBytes")]
#[serde(rename = "SizeInBytes", alias = "sizeInBytes")]
pub size_in_bytes: u32,
}
Loading