Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/openapi_validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Validate OpenAPI Schema

on:
pull_request:
branches:
- master

jobs:
validate_openapi_schema_meta:
name: Validate OpenAPI Schema for Meta
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"

validate_openapi_schema_registry:
name: Validate OpenAPI Schema for registry
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Validate OpenAPI schema for registry.yaml
id: validate_registry
uses: thiyagu06/openapi-validator-action@v1
with:
filepath: "./api/registry/build/registry.yaml"

validate_openapi_schema_transaction:
name: Validate OpenAPI Schema for transaction
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Validate OpenAPI schema for transaction.yaml
id: validate_transaction
uses: thiyagu06/openapi-validator-action@v1
with:
filepath: "./api/transaction/build/transaction.yaml"
2 changes: 1 addition & 1 deletion api/meta/build/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ paths:
- Beckn Application Platform (BPP)
description: BPP provides the list of return reasons to the BAP
requestBody:
content:
content:asfsdaf
application/json:
schema:
type: object
Expand Down