diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml new file mode 100644 index 0000000..94bb085 --- /dev/null +++ b/.github/workflows/pr-comment.yml @@ -0,0 +1,23 @@ +name: oasdiff PR comment + +on: + pull_request: + +permissions: + contents: read + pull-requests: write + statuses: write + +jobs: + pr-comment: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Post oasdiff PR comment + uses: oasdiff/oasdiff-action/pr-comment@v0.0.33 + with: + base: https://raw.githubusercontent.com/${{ github.repository }}/${{ github.base_ref }}/simple.yaml + revision: simple.yaml + oasdiff-token: 0634345d-02fb-43df-b56a-68fc22253621 diff --git a/simple.yaml b/simple.yaml index b635d93..4b00e1f 100644 --- a/simple.yaml +++ b/simple.yaml @@ -1,7 +1,7 @@ openapi: 3.0.1 info: title: Tufin - version: "3.0" + version: "4.0" servers: - url: https://localhost:8080 components: @@ -9,7 +9,7 @@ components: groupId: in: query name: groupId - required: false + required: true schema: type: string schemas: @@ -23,16 +23,17 @@ components: type: string format: date-time readOnly: true - pattern: "^[a-z]+$" id: type: string readOnly: true name: type: string + description: + type: string required: - name paths: - /api/v1.0/groups: + /api/v1.2/groups: post: tags: - Group @@ -51,10 +52,19 @@ paths: schema: $ref: '#/components/schemas/GroupView' description: SUCCESS - "400": + summary: Create a Project + /api/v1.0/groups/{groupId}: + get: + tags: + - Group + operationId: getOneGroup + parameters: + - $ref: '#/components/parameters/groupId' + responses: + "200": content: application/json: schema: $ref: '#/components/schemas/GroupView' - description: Conflict - summary: Create a Project + description: SUCCESS + summary: Get a Project