Add images to question about open state of doors (#284) #681
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: JSON Validation | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- '**/definition.json' | |
- '**/question_catalog_schema.json' | |
- '**/osm_condition_schema.json' | |
- '**/expression_schema.json' | |
pull_request: | |
paths: | |
- '**/definition.json' | |
- '**/question_catalog_schema.json' | |
- '**/osm_condition_schema.json' | |
- '**/expression_schema.json' | |
# Allow running this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install jsonschema validator | |
run: pip install jsonschema | |
- name: Validate questions JSON | |
run: jsonschema --instance 'assets/question_catalog/definition.json' 'schemas/question_catalog_schema.json' | |
- name: Validate advanced questions JSON | |
run: jsonschema --instance 'assets/advanced_question_catalog/definition.json' 'schemas/question_catalog_schema.json' |