Skip to content

Commit 6b86aaf

Browse files
authored
Fix review & put to docs (#31)
* Fix review & put to docs * Copy be dex methods * Regenerate oepn api
1 parent f921e98 commit 6b86aaf

43 files changed

Lines changed: 1220 additions & 2293 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/openapi.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: OpenAPI drift guard
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
pull_request:
8+
9+
jobs:
10+
drift:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: dtolnay/rust-toolchain@stable
15+
- uses: Swatinem/rust-cache@v2
16+
- name: Regenerate openapi.yaml from Rust source
17+
run: cargo run --quiet -p dodex-api --bin gen-openapi -- --out /tmp/openapi.yaml
18+
- name: Diff against committed docs/openapi.yaml
19+
run: |
20+
if ! diff -u docs/openapi.yaml /tmp/openapi.yaml; then
21+
echo
22+
echo "docs/openapi.yaml is out of sync with services/api."
23+
echo "Run openapi/generate.sh and commit the result."
24+
exit 1
25+
fi

.github/workflows/pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- dev
77
paths:
8-
- 'openapi/**'
8+
- 'docs/**'
99
- '.github/workflows/pages.yml'
1010
workflow_dispatch:
1111

@@ -32,6 +32,6 @@ jobs:
3232
- uses: actions/configure-pages@v5
3333
- uses: actions/upload-pages-artifact@v3
3434
with:
35-
path: openapi
35+
path: docs
3636
- id: deployment
3737
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)