aboutsummaryrefslogtreecommitdiffstats
path: root/rust
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-09 00:05:19 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-09 00:05:19 -0700
commit8888e6ea1af818a0a5dfb7414fa767ae176d092f (patch)
tree51928d55bcdfb42cb1d9f441d6eba04ca0cb4075 /rust
parent683aa854c6294670b97ec8d6e7c5decfdcc66ad0 (diff)
downloadfatcat-8888e6ea1af818a0a5dfb7414fa767ae176d092f.tar.gz
fatcat-8888e6ea1af818a0a5dfb7414fa767ae176d092f.zip
extent release_date codegen hack to withdrawn_date
Diffstat (limited to 'rust')
-rwxr-xr-xrust/codegen_openapi2.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/codegen_openapi2.sh b/rust/codegen_openapi2.sh
index a26d3db6..715326d5 100755
--- a/rust/codegen_openapi2.sh
+++ b/rust/codegen_openapi2.sh
@@ -10,6 +10,7 @@ sed -i 's/extern crate uuid;/extern crate serde_json;\nextern crate uuid;/g' fat
# Hack to fix "release_date" as Date, not DateTime
sed -i 's/release_date: Option<chrono::DateTime<chrono::Utc>>/release_date: Option<chrono::NaiveDate>/g' fatcat-api-spec/src/models.rs
+sed -i 's/withdrawn_date: Option<chrono::DateTime<chrono::Utc>>/withdrawn_date: Option<chrono::NaiveDate>/g' fatcat-api-spec/src/models.rs
# Hack to optionally log unknown request fields (not actually needed)
#sed -i 's/\(response.headers.set(Warning(format!("Ignoring unknown fields in body: {:?}", unused_elements)));\)/\1 warn!("unknown fields in request body: {:?}", unused_elements);/g' fatcat-api-spec/src/server.rs