diff --git a/.github/workflows/free-review.yml b/.github/workflows/oasdiff.yml similarity index 86% rename from .github/workflows/free-review.yml rename to .github/workflows/oasdiff.yml index 7400ddb..88036d6 100644 --- a/.github/workflows/free-review.yml +++ b/.github/workflows/oasdiff.yml @@ -6,12 +6,12 @@ permissions: contents: read pull-requests: write jobs: - breaking-changes: + oasdiff: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - run: git fetch --depth=1 origin ${{ github.base_ref }} - - uses: oasdiff/oasdiff-action/breaking@v0 + - uses: oasdiff/oasdiff-action/breaking@main with: base: 'origin/${{ github.base_ref }}:simple.yaml' revision: 'HEAD:simple.yaml' diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml deleted file mode 100644 index 63be70f..0000000 --- a/.github/workflows/pr-comment.yml +++ /dev/null @@ -1,23 +0,0 @@ -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 - with: - base: https://raw.githubusercontent.com/${{ github.repository }}/${{ github.base_ref }}/simple.yaml - revision: simple.yaml - oasdiff-token: ${{ secrets.OASDIFF_TOKEN }} diff --git a/.github/workflows/pro-review.yml b/.github/workflows/pro-review.yml deleted file mode 100644 index 4b64cca..0000000 --- a/.github/workflows/pro-review.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: oasdiff pro review -on: - pull_request: - branches: [ "main" ] -permissions: - contents: read - pull-requests: write - statuses: write -jobs: - pro-review: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - run: git fetch --depth=1 origin ${{ github.base_ref }} - - uses: oasdiff/oasdiff-action/changelog@v0 - with: - base: 'origin/${{ github.base_ref }}:simple.yaml' - revision: 'HEAD:simple.yaml' - oasdiff-token: ${{ secrets.OASDIFF_TOKEN }} - github-token: ${{ github.token }} diff --git a/simple.yaml b/simple.yaml index b635d93..0a8f8ea 100644 --- a/simple.yaml +++ b/simple.yaml @@ -1,7 +1,7 @@ openapi: 3.0.1 info: title: Tufin - version: "3.0" + version: "3.1" servers: - url: https://localhost:8080 components: @@ -9,7 +9,7 @@ components: groupId: in: query name: groupId - required: false + required: true schema: type: string schemas: @@ -19,6 +19,12 @@ components: data: type: object properties: + label: + type: string + owner: + type: string + tier: + type: string created: type: string format: date-time @@ -28,9 +34,10 @@ components: type: string readOnly: true name: - type: string + type: integer required: - name + - id paths: /api/v1.0/groups: post: @@ -45,12 +52,6 @@ paths: description: Creates one project. required: true responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/GroupView' - description: SUCCESS "400": content: application/json: