diff options
Diffstat (limited to 'rust')
-rwxr-xr-x | rust/codegen_openapi2.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/codegen_openapi2.sh b/rust/codegen_openapi2.sh index e003ff39..a6826148 100755 --- a/rust/codegen_openapi2.sh +++ b/rust/codegen_openapi2.sh @@ -3,4 +3,9 @@ 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 |