diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..1e93aa3 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,15 @@ +name: Validate JSONs + +on: [pull_request] + +jobs: + verify-json-validation: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Validate JSON + uses: docker://orrosenblatt/validate-json-action:latest + env: + INPUT_JSONS: ./wallets.json + INPUT_SCHEMA: ./schema.json + diff --git a/schema.json b/schema.json new file mode 100644 index 0000000..5393995 --- /dev/null +++ b/schema.json @@ -0,0 +1,10 @@ +{ + "type": "object", + "properties": { + "name":{"type": "string"}, + "subname": {"type": "string"}, + "tag": {"type": ["string"]}, + "logo": {"type": "string"}, + "href": {"type": "string"} + } +}