Skip to content

Commit 45b25fd

Browse files
omermoradcontractual[bot]
andauthored
chore: version contracts (#3)
Co-authored-by: contractual[bot] <contractual[bot]@users.noreply.github.com>
1 parent 85a4abd commit 45b25fd

4 files changed

Lines changed: 25 additions & 46 deletions

File tree

.contractual/changesets/eager-wolves-prowl.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.contractual/snapshots/petstore.yaml

Lines changed: 19 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,20 @@ info:
33
title: Petstore API
44
description: A simple API for managing a pet store
55
version: 1.0.0
6+
license:
7+
name: MIT
8+
url: https://opensource.org/licenses/MIT
69
contact:
710
name: API Support
811
email: support@petstore.example.com
912

1013
servers:
11-
- url: https://api.petstore.example.com/v1
14+
- url: https://api.petstore.io/v1
1215
description: Production server
1316

17+
security:
18+
- ApiKeyAuth: []
19+
1420
paths:
1521
/pets:
1622
get:
@@ -38,6 +44,12 @@ paths:
3844
type: array
3945
items:
4046
$ref: '#/components/schemas/Pet'
47+
'400':
48+
description: Invalid request parameters
49+
content:
50+
application/json:
51+
schema:
52+
$ref: '#/components/schemas/Error'
4153
'500':
4254
description: Internal server error
4355
content:
@@ -77,43 +89,15 @@ paths:
7789
schema:
7890
$ref: '#/components/schemas/Error'
7991

80-
/pets/{petId}:
81-
get:
82-
summary: Get a pet by ID
83-
description: Returns a single pet by its ID
84-
operationId: getPetById
85-
tags:
86-
- pets
87-
parameters:
88-
- name: petId
89-
in: path
90-
required: true
91-
description: ID of the pet to retrieve
92-
schema:
93-
type: string
94-
format: uuid
95-
responses:
96-
'200':
97-
description: Successful response
98-
content:
99-
application/json:
100-
schema:
101-
$ref: '#/components/schemas/Pet'
102-
'404':
103-
description: Pet not found
104-
content:
105-
application/json:
106-
schema:
107-
$ref: '#/components/schemas/Error'
108-
'500':
109-
description: Internal server error
110-
content:
111-
application/json:
112-
schema:
113-
$ref: '#/components/schemas/Error'
11492

11593

11694
components:
95+
securitySchemes:
96+
ApiKeyAuth:
97+
type: apiKey
98+
in: header
99+
name: X-API-Key
100+
117101
schemas:
118102
Pet:
119103
type: object
@@ -137,7 +121,6 @@ components:
137121
enum:
138122
- dog
139123
- cat
140-
- bird
141124
- rabbit
142125
description: Species of the pet
143126
breed:
@@ -185,7 +168,6 @@ components:
185168
enum:
186169
- dog
187170
- cat
188-
- bird
189171
- rabbit
190172
description: Species of the pet
191173
breed:

.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": "1.1.0",
4-
"released": "2026-03-27T22:54:27.781Z"
3+
"version": "2.0.0",
4+
"released": "2026-03-28T17:39:25.517Z"
55
}
66
}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [petstore] v2.0.0 - 2026-03-28
4+
5+
- **[BREAKING]** remove path at paths./pets/{petId}
6+
37
## [petstore] v1.1.0 - 2026-03-28
48

59
- **[minor]** remove response body scope at paths./pets.get.responses.200.content.application/json.schema

0 commit comments

Comments
 (0)