File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -2,24 +2,19 @@ name: check-oas
2
2
3
3
on :
4
4
push :
5
- paths :
6
- - " src/openklant/components/*/openapi.yaml"
7
- - .github/workflows/oas-check.yml
8
- branches :
9
- - ' **'
10
5
workflow_dispatch :
11
6
12
7
jobs :
13
8
open-api-workflow-check-oas :
14
- uses : maykinmedia/open-api-workflows/.github/workflows/oas-check.yml@v1
9
+ uses : maykinmedia/open-api-workflows/.github/workflows/oas-check.yml@v5.0.0
15
10
strategy :
16
11
matrix :
17
12
component :
18
13
- contactgegevens
19
14
- klantinteracties
20
15
with :
21
16
schema-path : ' src/openklant/components/${{ matrix.component }}/openapi.yaml'
22
- schema-command : ' spectacular_for_component '
23
- schema-options : " -- component ${{ matrix.component }}"
17
+ schema-command : ' bin/generate_schema_for_component.sh '
18
+ schema-options : " ${{ matrix. component }} src/openklant/components/ ${{ matrix.component }}/openapi.yaml "
24
19
python-version : ' 3.11'
25
20
django-settings-module : ' openklant.conf.ci'
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ OUTPUT_FILE=$2
22
22
echo " Generating OAS schema for $1 ..."
23
23
src/manage.py spectacular_for_component \
24
24
--file ${OUTPUT_FILE:- $SCHEMA_PATH / openapi.yaml} \
25
+ --lang=" nl-nl" \
26
+ --validate \
25
27
--component $1
26
28
27
29
echo " Done."
You can’t perform that action at this time.
0 commit comments