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
10 changes: 6 additions & 4 deletions .github/workflows/delimit.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Delimit

on:
push:
pull_request:
paths:
- 'openapi.yaml'

permissions:
contents: read
Expand All @@ -13,10 +14,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check API compatibility
uses: delimit-ai/delimit-action@v1
with:
old_spec: openapi.yaml
new_spec: openapi-changed.yaml
mode: enforce
spec: openapi.yaml
mode: advisory
21 changes: 13 additions & 8 deletions openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: "3.0.3"
info:
title: Pet Store API
version: "1.0.0"
version: "2.0.0"
description: Sample API for Delimit quickstart
paths:
/pets:
Expand Down Expand Up @@ -53,18 +53,24 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/Pet"
delete:
summary: Delete a pet
operationId: deletePet
patch:
summary: Update a pet
operationId: updatePet
parameters:
- name: petId
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/Pet"
responses:
"204":
description: Pet deleted
"200":
description: Pet updated
components:
schemas:
Pet:
Expand All @@ -74,7 +80,7 @@ components:
- name
properties:
id:
type: string
type: integer
name:
type: string
tag:
Expand All @@ -83,5 +89,4 @@ components:
type: string
enum:
- available
- pending
- adopted
Loading