Skip to content

Commit b832a8c

Browse files
NPA-3895: Added script to validate schema
1 parent c1007bc commit b832a8c

File tree

5 files changed

+356
-3
lines changed

5 files changed

+356
-3
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Open API Validate
2+
"on":
3+
pull_request:
4+
branches: [master]
5+
permissions:
6+
contents: read
7+
jobs:
8+
GET_Consent:
9+
name: GET Consent test
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: 3.9
19+
20+
# - name: Install dependencies
21+
# run: |
22+
# pip install -r requirements.txt # If you have dependencies
23+
24+
- name: Run Python script for all files
25+
run: |
26+
cd scripts
27+
for file in ../specification/examples/response/GET_Consent/*; do
28+
python validate_schema.py Consent "$file"
29+
done

0 commit comments

Comments
 (0)