-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (59 loc) · 2.12 KB
/
openapi-validate.yml
File metadata and controls
66 lines (59 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: OpenAPI Validate Examples
on:
pull_request:
branches: [master]
permissions:
contents: read
jobs:
ExamplesSchemasChecks:
name: Check ${{ matrix.endpoint.name }} Examples
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
endpoint:
[
{
name: "GET /Consent",
make_target: "schema-get-consent",
},
{
name: "POST /Consent",
make_target: "schema-post-consent",
},
{
name: "PATCH /Consent",
make_target: "schema-patch-consent",
},
{
name: "GET /RelatedPerson",
make_target: "schema-related-person",
},
{
name: "POST /Questionnaire",
make_target: "schema-questionnaire",
},
{
name: "GET /Questionnaire",
make_target: "schema-get-questionnaire",
},
{ name: "Errors", make_target: "schema-errors" },
]
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: 3.13
- name: Install Poetry
shell: bash
run: pipx install poetry==1.8.5
- name: Install Script Packages with Poetry
shell: bash
run: poetry install --all-extras
- name: Check Examples against Endpoint Schemas
run: make ${{ matrix.endpoint.make_target }}