From 54c4b6cd67c7f8190dc7dfb4da6ad99dc2101c82 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 14 Nov 2018 18:52:48 -0800 Subject: fix date/datetime confusion on rust/API side Should have dug in to this earlier; python code was getting confused. This is a breaking API change, from a practical standpoint, as both python and rust code had been hacked to work around this. --- rust/codegen_openapi2.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rust/codegen_openapi2.sh') diff --git a/rust/codegen_openapi2.sh b/rust/codegen_openapi2.sh index 05e75ff0..f7d1df53 100755 --- a/rust/codegen_openapi2.sh +++ b/rust/codegen_openapi2.sh @@ -8,4 +8,7 @@ git checkout fatcat-api-spec/Cargo.toml sed -i 's/Object/serde_json::Value/g' fatcat-api-spec/src/models.rs sed -i 's/extern crate uuid;/extern crate serde_json;\nextern crate uuid;/g' fatcat-api-spec/src/models.rs +# 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 + cargo fmt -- cgit v1.2.3