This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate OpenAPI Schema | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- draft | |
jobs: | |
validate_openapi_schema_meta: | |
name: Validate OpenAPI Schemas | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
- name: install Beckn validator tool for spec | |
run: npm install -g beckn-spec-validator | |
- name: Validate meta file | |
run: beckn-spec-validator -b api/meta/build/meta.yaml -v false | |
- name: Validate registry file | |
run: beckn-spec-validator -b api/registry/build/registry.yaml -v false | |
- name: Validate transaction file | |
run: beckn-spec-validator -b api/transaction/build/transaction.yaml -v false |