Skip to content

Location: Make lat/lon optional, but add more validation logic #129

Location: Make lat/lon optional, but add more validation logic

Location: Make lat/lon optional, but add more validation logic #129

Workflow file for this run

name: Validate schema
on:
pull_request:
push:
branches:
- master
jobs:
validate-json-schema:
name: v${{ matrix.schema }} schema
runs-on: ubuntu-latest
strategy:
matrix:
schema: [12, 13, 14, 15-draft]
steps:
- uses: actions/checkout@v4
- name: Install validator
run: npm install [email protected]
- name: Download JSON meta-schema
run: wget -O meta-schema https://json-schema.org/draft-07/schema
- name: Validate schema file against meta-schema
run: npx ajv validate -s meta-schema -d "${{ matrix.schema }}.json" --add-used-schema false --errors=text