Skip to content

Commit 23d1519

Browse files
ctronmmurto
authored andcommitted
fix: follow enum literals from schema
Also see: https://github.com/spdx/spdx-spec/blob/ 844144b3785dbc6a35065eda3b9d36adda874540/schemas/spdx-schema.json#L328 https://github.com/spdx/spdx-spec/blob/ 844144b3785dbc6a35065eda3b9d36adda874540/ schemas/spdx-schema.json#L416C140-L416C156
1 parent 49ed38c commit 23d1519

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/models/package_information.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,15 @@ impl ExternalPackageReference {
299299
#[serde(rename_all = "SCREAMING-KEBAB-CASE")]
300300
pub enum ExternalPackageReferenceCategory {
301301
Security,
302+
#[serde(alias = "PACKAGE_MANAGER")]
302303
PackageManager,
304+
#[serde(alias = "PERSISTENT_ID")]
303305
PersistentID,
304306
Other,
305307
}
306308

307309
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq, Copy)]
308-
#[serde(rename_all = "SCREAMING-KEBAB-CASE")]
310+
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
309311
pub enum PrimaryPackagePurpose {
310312
Application,
311313
Framework,

0 commit comments

Comments
 (0)