Skip to content

Commit ff29fb8

Browse files
committed
feat: add color field and remove delete endpoint
Changes: - Add optional color field to Pet schema (v0.1.0) - Remove DELETE /pets/{petId} endpoint (v1.0.0) BREAKING CHANGE: DELETE /pets/{petId} endpoint removed
1 parent 4d7e068 commit ff29fb8

4 files changed

Lines changed: 21 additions & 60 deletions

File tree

.contractual/snapshots/petstore.yaml

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -112,35 +112,6 @@ paths:
112112
schema:
113113
$ref: '#/components/schemas/Error'
114114

115-
delete:
116-
summary: Delete a pet
117-
description: Remove a pet from the store
118-
operationId: deletePet
119-
tags:
120-
- pets
121-
parameters:
122-
- name: petId
123-
in: path
124-
required: true
125-
description: ID of the pet to delete
126-
schema:
127-
type: string
128-
format: uuid
129-
responses:
130-
'204':
131-
description: Pet deleted successfully
132-
'404':
133-
description: Pet not found
134-
content:
135-
application/json:
136-
schema:
137-
$ref: '#/components/schemas/Error'
138-
'500':
139-
description: Internal server error
140-
content:
141-
application/json:
142-
schema:
143-
$ref: '#/components/schemas/Error'
144115

145116
components:
146117
schemas:
@@ -178,6 +149,10 @@ components:
178149
minimum: 0
179150
maximum: 50
180151
description: Age of the pet in years (optional)
152+
color:
153+
type: string
154+
maxLength: 30
155+
description: Color of the pet (optional)
181156
status:
182157
type: string
183158
enum:

.contractual/versions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"petstore": {
3-
"version": "0.0.0",
4-
"released": "2026-03-27T16:57:53.638Z"
3+
"version": "1.0.0",
4+
"released": "2026-03-27T17:12:54.432Z"
55
}
66
}

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Changelog
2+
3+
## [petstore] v1.0.0 - 2026-03-27
4+
5+
- **[BREAKING]** remove method at paths./pets/{petId}.delete
6+
7+
## [petstore] v0.1.0 - 2026-03-27
8+
9+
- **[minor]** remove response body scope at paths./pets.get.responses.200.content.application/json.schema
10+
- **[minor]** remove response body scope at paths./pets.post.responses.201.content.application/json.schema
11+
- **[minor]** remove response body scope at paths./pets/{petId}.get.responses.200.content.application/json.schema

specs/petstore.openapi.yaml

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -112,35 +112,6 @@ paths:
112112
schema:
113113
$ref: '#/components/schemas/Error'
114114

115-
delete:
116-
summary: Delete a pet
117-
description: Remove a pet from the store
118-
operationId: deletePet
119-
tags:
120-
- pets
121-
parameters:
122-
- name: petId
123-
in: path
124-
required: true
125-
description: ID of the pet to delete
126-
schema:
127-
type: string
128-
format: uuid
129-
responses:
130-
'204':
131-
description: Pet deleted successfully
132-
'404':
133-
description: Pet not found
134-
content:
135-
application/json:
136-
schema:
137-
$ref: '#/components/schemas/Error'
138-
'500':
139-
description: Internal server error
140-
content:
141-
application/json:
142-
schema:
143-
$ref: '#/components/schemas/Error'
144115

145116
components:
146117
schemas:
@@ -178,6 +149,10 @@ components:
178149
minimum: 0
179150
maximum: 50
180151
description: Age of the pet in years (optional)
152+
color:
153+
type: string
154+
maxLength: 30
155+
description: Color of the pet (optional)
181156
status:
182157
type: string
183158
enum:

0 commit comments

Comments
 (0)