From 5fae69865825f8c7374109034933dcabe0f19604 Mon Sep 17 00:00:00 2001 From: deekshith Date: Thu, 20 Jul 2023 18:42:16 +0530 Subject: [PATCH 1/3] added a workflow to validate meta.yaml when ever a PR is made to main branch --- .github/workflows/openapi_validation.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/openapi_validation.yml diff --git a/.github/workflows/openapi_validation.yml b/.github/workflows/openapi_validation.yml new file mode 100644 index 00000000..d9aa313a --- /dev/null +++ b/.github/workflows/openapi_validation.yml @@ -0,0 +1,20 @@ +name: Validate OpenAPI Schema + +on: + pull_request: + branches: + - main + +jobs: + validate_openapi_schema: + name: Validate OpenAPI Schema + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Validate OpenAPI schema + uses: thiyagu06/openapi-validator-action@v1 + with: + filepath: "./api/meta/build/meta.yaml" From ecdb11e4d17e757421cf9848d434964de40d740d Mon Sep 17 00:00:00 2001 From: deekshith Date: Thu, 20 Jul 2023 18:43:41 +0530 Subject: [PATCH 2/3] changed branch name --- .github/workflows/openapi_validation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/openapi_validation.yml b/.github/workflows/openapi_validation.yml index d9aa313a..ce3aa45c 100644 --- a/.github/workflows/openapi_validation.yml +++ b/.github/workflows/openapi_validation.yml @@ -3,7 +3,7 @@ name: Validate OpenAPI Schema on: pull_request: branches: - - main + - master jobs: validate_openapi_schema: From 2e67d5a5524773b86105275750065ba440907737 Mon Sep 17 00:00:00 2001 From: deekshith Date: Thu, 20 Jul 2023 18:47:21 +0530 Subject: [PATCH 3/3] changed meta --- api/meta/build/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/meta/build/meta.yaml b/api/meta/build/meta.yaml index 4992bd2a..6a676474 100644 --- a/api/meta/build/meta.yaml +++ b/api/meta/build/meta.yaml @@ -78,7 +78,7 @@ paths: type: object properties: context: - allOf: + allOf:fasfd - $ref: '#/components/schemas/Context' - properties: action: