Skip to content

Commit ce18abe

Browse files
committed
feat: 🎸 Updated Derbysoft Proxy swagger doc
1 parent 4c238ad commit ce18abe

File tree

3 files changed

+1199
-2
lines changed

3 files changed

+1199
-2
lines changed

‎scripts/build.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
rm -rf dist types
44
mkdir -p dist types
55
wget -O dist/simard.yaml https://qa.payment.simard.io/api/docs/simard.yaml
6-
wget -O dist/derbysoft.yaml https://qa.hotels.simard.io/v1/docs/yaml
6+
# wget -O dist/derbysoft.yaml https://qa.hotels.simard.io/v1/docs/yaml
7+
cp src/derbysoft-proxy.yaml dist/derbysoft.yaml
78
wget -O dist/win.yaml https://raw.githubusercontent.com/windingtree/win-backend/main/swagger/swagger.yaml
89
node scripts/parse.js
910
npx json2ts --unreachableDefinitions --input dist/simard.json --output types/simard.d.ts

‎scripts/parse.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const files = [
4747
},
4848
{
4949
name: 'DerbysoftProxy',
50-
path: 'dist/derbysoft.yaml',
50+
path: 'src/derbysoft-proxy.yaml',
5151
definitions: 'components.schemas',
5252
replacePath: 'components/schemas',
5353
out: 'dist/derbysoft.json'

0 commit comments

Comments
 (0)