Skip to content

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

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

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

name: Validate formatting
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: Reformat JSON with jq
run: jq . -M --indent 2 < ${{ matrix.schema }}.json > ${{ matrix.schema }}-formatted.json
- name: Check for differences
run: diff ${{ matrix.schema }}.json ${{ matrix.schema }}-formatted.json && echo "No differences found!"