Skip to content
Merged
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
7 changes: 0 additions & 7 deletions .contractual/changesets/eager-wolves-prowl.md

This file was deleted.

56 changes: 19 additions & 37 deletions .contractual/snapshots/petstore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@ info:
title: Petstore API
description: A simple API for managing a pet store
version: 1.0.0
license:
name: MIT
url: https://opensource.org/licenses/MIT
contact:
name: API Support
email: support@petstore.example.com

servers:
- url: https://api.petstore.example.com/v1
- url: https://api.petstore.io/v1
description: Production server

security:
- ApiKeyAuth: []

paths:
/pets:
get:
Expand Down Expand Up @@ -38,6 +44,12 @@ paths:
type: array
items:
$ref: '#/components/schemas/Pet'
'400':
description: Invalid request parameters
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Internal server error
content:
Expand Down Expand Up @@ -77,43 +89,15 @@ paths:
schema:
$ref: '#/components/schemas/Error'

/pets/{petId}:
get:
summary: Get a pet by ID
description: Returns a single pet by its ID
operationId: getPetById
tags:
- pets
parameters:
- name: petId
in: path
required: true
description: ID of the pet to retrieve
schema:
type: string
format: uuid
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Pet'
'404':
description: Pet not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'


components:
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key

schemas:
Pet:
type: object
Expand All @@ -137,7 +121,6 @@ components:
enum:
- dog
- cat
- bird
- rabbit
description: Species of the pet
breed:
Expand Down Expand Up @@ -185,7 +168,6 @@ components:
enum:
- dog
- cat
- bird
- rabbit
description: Species of the pet
breed:
Expand Down
4 changes: 2 additions & 2 deletions .contractual/versions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"petstore": {
"version": "1.1.0",
"released": "2026-03-27T22:54:27.781Z"
"version": "2.0.0",
"released": "2026-03-28T17:39:25.517Z"
}
}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [petstore] v2.0.0 - 2026-03-28

- **[BREAKING]** remove path at paths./pets/{petId}

## [petstore] v1.1.0 - 2026-03-28

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