aboutsummaryrefslogtreecommitdiffstats
path: root/rust/codegen_openapi2.sh
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-11 13:59:32 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-11 13:59:32 -0700
commitcd8e09fcb6ee0a1b23c0bd57d0f097f99fd6d828 (patch)
treefbd5c91c576a2fce2c44cfe36e5754b69aedc046 /rust/codegen_openapi2.sh
parent0dc872921023030f6ffd320eb038e5379b47fa53 (diff)
downloadfatcat-cd8e09fcb6ee0a1b23c0bd57d0f097f99fd6d828.tar.gz
fatcat-cd8e09fcb6ee0a1b23c0bd57d0f097f99fd6d828.zip
refactor fatcat-api => fatcat-api-spec
Diffstat (limited to 'rust/codegen_openapi2.sh')
-rwxr-xr-xrust/codegen_openapi2.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/rust/codegen_openapi2.sh b/rust/codegen_openapi2.sh
index 6dbb087d..05e75ff0 100755
--- a/rust/codegen_openapi2.sh
+++ b/rust/codegen_openapi2.sh
@@ -1,11 +1,11 @@
#!/bin/sh
-cargo swagger ../fatcat-openapi2.yml fatcat-api --docker-tag=v2.3.1
-sudo chown `whoami`:`whoami` -R fatcat-api
-git checkout fatcat-api/Cargo.toml
+cargo swagger ../fatcat-openapi2.yml fatcat-api-spec --docker-tag=v2.3.1
+sudo chown `whoami`:`whoami` -R fatcat-api-spec
+git checkout fatcat-api-spec/Cargo.toml
# Hack to handle "extra" JSON fields
-sed -i 's/Object/serde_json::Value/g' fatcat-api/src/models.rs
-sed -i 's/extern crate uuid;/extern crate serde_json;\nextern crate uuid;/g' fatcat-api/src/models.rs
+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
cargo fmt