From 7ed25a124e91f005b3347924be3783b51b79d197 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 16 May 2019 13:53:46 -0700 Subject: rust/schema: allow 'retraction' release_type --- rust/src/identifiers.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rust') diff --git a/rust/src/identifiers.rs b/rust/src/identifiers.rs index 88e22960..fead4272 100644 --- a/rust/src/identifiers.rs +++ b/rust/src/identifiers.rs @@ -536,6 +536,7 @@ pub fn check_release_type(raw: &str) -> Result<()> { "editorial", "letter", "stub", + "retraction", ]; for good in valid_types { if raw == good { @@ -551,6 +552,7 @@ pub fn check_release_type(raw: &str) -> Result<()> { #[test] fn test_check_release_type() { assert!(check_release_type("book").is_ok()); + assert!(check_release_type("retraction").is_ok()); assert!(check_release_type("article-journal").is_ok()); assert!(check_release_type("standard").is_ok()); assert!(check_release_type("journal-article").is_err()); -- cgit v1.2.3