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
21 changes: 0 additions & 21 deletions .github/workflows/oasdiff.yml

This file was deleted.

27 changes: 12 additions & 15 deletions .github/workflows/pr-comment.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
name: oasdiff PR comment
name: API Breaking Change Check

on:
pull_request:

permissions:
contents: read
pull-requests: write
statuses: write
paths:
- 'simple.yaml'

jobs:
pr-comment:
breaking-changes:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- uses: actions/checkout@v6

- run: git fetch --depth=1 origin ${{ github.base_ref }}

- name: Post oasdiff PR comment
uses: oasdiff/oasdiff-action/pr-comment@v0.0.34
with:
base: https://raw.githubusercontent.com/${{ github.repository }}/${{ github.base_ref }}/simple.yaml
revision: simple.yaml
oasdiff-token: 0634345d-02fb-43df-b56a-68fc22253621
- uses: oasdiff/oasdiff-action/breaking@main
with:
base: 'origin/${{ github.base_ref }}:simple.yaml'
revision: 'HEAD:simple.yaml'
fail-on: ERR
28 changes: 25 additions & 3 deletions simple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@
groupId:
in: query
name: groupId
required: false
required: true
schema:
type: string
type: object
properties:
id:
type: number
schemas:
GroupView:
type: object
Expand All @@ -23,16 +26,35 @@
type: string
format: date-time
readOnly: true
pattern: "^[a-z]+$"
pattern: "^[A-Z]+$"

Check warning on line 29 in simple.yaml

View workflow job for this annotation

GitHub Actions / breaking-changes

request-property-pattern-changed

in API POST /api/v1.0/groups changed the pattern of the request property 'data/created' from '^[a-z]+$' to '^[A-Z]+$'
id:
type: string
readOnly: true
name:
type: string
email:
type: string
required:
- name
- email1
paths:
/api/v1.0/groups:
get:
tags:
- Group
operationId: getGroups
parameters:
- $ref: '#/components/parameters/groupId'
responses:
"200":
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/GroupView'
description: SUCCESS
summary: Get Projects
post:
tags:
- Group
Expand Down
Loading