diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-02-14 16:24:16 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-02-14 16:24:16 -0800 |
commit | b9699e27936573271506dbf6a3af744f7b454c03 (patch) | |
tree | a5ec41bf27f844fad32ca7f6aa1c254bd5c424ae /rust/src/entity_crud.rs | |
parent | 70b4bc18b13f59c9d42c8e44ef872dfd2e1abef3 (diff) | |
download | fatcat-b9699e27936573271506dbf6a3af744f7b454c03.tar.gz fatcat-b9699e27936573271506dbf6a3af744f7b454c03.zip |
verify release_status field
Diffstat (limited to 'rust/src/entity_crud.rs')
-rw-r--r-- | rust/src/entity_crud.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rust/src/entity_crud.rs b/rust/src/entity_crud.rs index 743d451a..faf4b496 100644 --- a/rust/src/entity_crud.rs +++ b/rust/src/entity_crud.rs @@ -1964,6 +1964,9 @@ impl EntityCrud for ReleaseEntity { if let Some(ref release_type) = entity.release_type { check_release_type(release_type)?; } + if let Some(ref release_status) = entity.release_status { + check_release_status(release_status)?; + } if let Some(ref abstracts) = entity.abstracts { if abstracts.len() > 200 { return Err(FatcatError::BadRequest( |