diff --git a/.github/workflows/openapi_validation.yml b/.github/workflows/openapi_validation.yml new file mode 100644 index 00000000..3740b2cc --- /dev/null +++ b/.github/workflows/openapi_validation.yml @@ -0,0 +1,33 @@ +name: Validate OpenAPI Schema + +on: + pull_request: + branches: + - master + +jobs: + validate_openapi_schema: + name: Validate OpenAPI Schema + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Validate OpenAPI schema for meta.yaml + id: validate_meta + uses: thiyagu06/openapi-validator-action@v1 + with: + filepath: "./api/meta/build/meta.yaml" + + - name: Validate OpenAPI schema for registry.yaml + id: validate_registry + uses: thiyagu06/openapi-validator-action@v1 + with: + filepath: "./api/registry/build/registry.yaml" + + - name: Validate OpenAPI schema for transaction.yaml + id: validate_transaction + uses: thiyagu06/openapi-validator-action@v1 + with: + filepath: "./api/transaction/build/transaction.yaml" diff --git a/api/meta/build/meta.yaml b/api/meta/build/meta.yaml index 4992bd2a..59fcdabf 100644 --- a/api/meta/build/meta.yaml +++ b/api/meta/build/meta.yaml @@ -92,7 +92,7 @@ paths: default: $ref: '#/paths/~1return_reasons/post/responses/default' /return_reasons: - post: + post:ss tags: - Beckn Application Platform (BPP) description: BPP provides the list of return reasons to the BAP