Skip to content

Commit

Permalink
Merge pull request #1012 from imageworks/validation-parse-fix
Browse files Browse the repository at this point in the history
Mark NameOrCurrent as an untagged enum
  • Loading branch information
jrray authored Apr 17, 2024
2 parents 3539322 + 9473f12 commit 504f6aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/spk-schema/src/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ pub enum FileAlteration {

/// Either a package name or a special reference to the current package
#[derive(Debug, Clone, Eq, Hash, Ord, PartialEq, PartialOrd, Deserialize, Serialize)]
#[serde(untagged)]
pub enum NameOrCurrent {
#[serde(rename = "Self")]
Current,
Expand Down

0 comments on commit 504f6aa

Please sign in to comment.