From 8888e6ea1af818a0a5dfb7414fa767ae176d092f Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 9 May 2019 00:05:19 -0700 Subject: extent release_date codegen hack to withdrawn_date --- rust/codegen_openapi2.sh | 1 + 1 file changed, 1 insertion(+) 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>/release_date: Option/g' fatcat-api-spec/src/models.rs +sed -i 's/withdrawn_date: Option>/withdrawn_date: Option/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 -- cgit v1.2.3