File tree Expand file tree Collapse file tree 8 files changed +237
-179
lines changed
web/server/src/simcore_service_webserver/api/v0 Expand file tree Collapse file tree 8 files changed +237
-179
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ concurrency:
1717jobs :
1818 api-specs :
1919 timeout-minutes : 10
20- name : " check oas ' are up to date"
20+ name : " check OAS ' are up to date"
2121 runs-on : ubuntu-latest
2222 steps :
2323 - name : setup python environment
@@ -35,11 +35,13 @@ jobs:
3535 run : |
3636 uv venv .venv && source .venv/bin/activate
3737 make openapi-specs
38- ./ci/github/helpers/openapi-specs-diff.bash diff \
38+ if ! ./ci/github/helpers/openapi-specs-diff.bash diff \
3939 https://raw.githubusercontent.com/${{ github.event.pull_request.head.repo.full_name }}/refs/heads/${{ github.event.pull_request.head.ref }} \
40- .
40+ .; then \
41+ echo "::error:: OAS are not up to date. Run 'make openapi-specs' to update them"; exit 1; \
42+ fi
4143
42- api-server-backwards-compatibility :
44+ api-server-oas-breaking :
4345 needs : api-specs
4446 timeout-minutes : 10
4547 name : " api-server backwards compatibility"
@@ -62,11 +64,11 @@ jobs:
6264 https://raw.githubusercontent.com/${{ github.event.pull_request.base.repo.full_name }}/refs/heads/${{ github.event.pull_request.base.ref }}/services/api-server/openapi.json \
6365 /specs/services/api-server/openapi.json
6466
65- oas-backwards-compatibility :
67+ all- oas-breaking :
6668 needs : api-specs
6769 continue-on-error : true
6870 timeout-minutes : 10
69- name : " oas backwards compatibility"
71+ name : " OAS backwards compatibility"
7072 runs-on : ubuntu-latest
7173 steps :
7274 - name : setup python environment
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ openapi-diff.md: guard-OPENAPI_JSON_BASE_URL openapi.json ## Diffs against a rem
8787# SEE https://schemathesis.readthedocs.io/en/stable/index.html
8888APP_URL: =http://$(get_my_ip ) .nip.io:8006
8989
90+
9091test-api : # # Runs schemathesis against development server (NOTE: make up-devel first)
9192 @docker run schemathesis/schemathesis:stable run \
9293 " $( APP_URL) /api/v0/openapi.json"
Original file line number Diff line number Diff line change 55485548 "urls" : {
55495549 "items" : {
55505550 "type" : " string" ,
5551+ "minLength" : 1 ,
55515552 "format" : " uri"
55525553 },
55535554 "type" : " array" ,
61616162 },
61626163 "download_link" : {
61636164 "type" : " string" ,
6165+ "minLength" : 1 ,
61646166 "format" : " uri" ,
61656167 "title" : " Download Link"
61666168 }
You can’t perform that action at this time.
0 commit comments