Skip to content

Commit 81ce420

Browse files
⬆️ upgrade api-server dependencies (#6860)
1 parent 34374b4 commit 81ce420

File tree

8 files changed

+237
-179
lines changed

8 files changed

+237
-179
lines changed

.github/workflows/ci-testing-pull-request.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ concurrency:
1717
jobs:
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

services/api-server/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
8888
APP_URL:=http://$(get_my_ip).nip.io:8006
8989

90+
9091
test-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"

services/api-server/openapi.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5548,6 +5548,7 @@
55485548
"urls": {
55495549
"items": {
55505550
"type": "string",
5551+
"minLength": 1,
55515552
"format": "uri"
55525553
},
55535554
"type": "array",
@@ -6161,6 +6162,7 @@
61616162
},
61626163
"download_link": {
61636164
"type": "string",
6165+
"minLength": 1,
61646166
"format": "uri",
61656167
"title": "Download Link"
61666168
}

0 commit comments

Comments
 (0)