diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a5225c7..2e09620 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,6 +18,10 @@ jobs: wget https://codeclimate.com/downloads/test-reporter/test-reporter-0.6.3-linux-amd64 -O cc-test-reporter chmod +x ./cc-test-reporter + - name: Validate Schema + run: | + npx ajv-cli compile -s schema.json + npx ajv-cli validate -s schema.json -d examples/beau.yml - name: Run CLI Tests run: npm test -- ./bin - name: Run Lib Tests diff --git a/examples/beau.yml b/examples/beau.yml index e18acb0..3bf859f 100644 --- a/examples/beau.yml +++ b/examples/beau.yml @@ -9,11 +9,7 @@ environment: GET /pokemon/$env._.pokemon: get-pokemon GET $get-pokemon.body.location_area_encounters: get-encounters ---- -host: httpbin -endpoint: https://httpbin.org - -POST /anything: +POST https://httpbin.org/anything: - alias: post-first-area payload: area: $get-encounters.body.0.location_area.name