diff --git a/.contractual/changesets/eager-wolves-prowl.md b/.contractual/changesets/eager-wolves-prowl.md deleted file mode 100644 index 46291a2..0000000 --- a/.contractual/changesets/eager-wolves-prowl.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"petstore": major ---- - -## petstore - -- **[BREAKING]** remove path at paths./pets/{petId} diff --git a/.contractual/snapshots/petstore.yaml b/.contractual/snapshots/petstore.yaml index 8f565f2..1ee263a 100644 --- a/.contractual/snapshots/petstore.yaml +++ b/.contractual/snapshots/petstore.yaml @@ -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: @@ -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: @@ -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 @@ -137,7 +121,6 @@ components: enum: - dog - cat - - bird - rabbit description: Species of the pet breed: @@ -185,7 +168,6 @@ components: enum: - dog - cat - - bird - rabbit description: Species of the pet breed: diff --git a/.contractual/versions.json b/.contractual/versions.json index abd980c..a215889 100644 --- a/.contractual/versions.json +++ b/.contractual/versions.json @@ -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" } } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index add0565..1a84fca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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