Skip to content

fix JSON

fix JSON #42

Workflow file for this run

name: Validate people.json
on:
push:
paths:
- 'people.json'
jobs:
validate-json:
runs-on: ubuntu-latest
steps:
- name: Checkout this repository
uses: actions/checkout@v3
- name: Setting up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Installing eslint & eslint-plugin-json
run: npm i eslint-plugin-json
- name: Validate the JSON
run: npx eslint people.json
- name: Installing ajv CLI
run: npm i -g ajv-cli
- name: Validate the JSON Schema
run: ajv validate -s schema.json -d people.json --spec=draft2020