blob: 6dbb087d90858b870e697c717bb1cc5884646c3e (
plain)
1
2
3
4
5
6
7
8
9
10
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
# 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
cargo fmt
|