Skip to content

Commit 21aa186

Browse files
authored
Chore: add a script to export OpenAPI types from the CGW Swagger (#80)
1 parent 1b32070 commit 21aa186

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/make-cgw-types.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
mkdir -p openapi
4+
curl 'https://safe-client.gnosis.io/openapi.json' > openapi/cgw.json
5+
npx openapi-typescript openapi/cgw.json --output openapi/cgw.ts

0 commit comments

Comments
 (0)