Skip to content

Update pet schema: make id optional, add breed#24

Closed
reuvenharrison wants to merge 1 commit intomainfrom
demo/breaking-change-pet-schema
Closed

Update pet schema: make id optional, add breed#24
reuvenharrison wants to merge 1 commit intomainfrom
demo/breaking-change-pet-schema

Conversation

@reuvenharrison
Copy link
Copy Markdown
Collaborator

@reuvenharrison reuvenharrison commented Apr 11, 2026

Update the Pet Store API schema:

  • Make id optional to support client-generated IDs
  • Add breed field for richer pet profiles

- Remove id from required (breaking change)
- Add breed property (non-breaking)
@oasdiff
Copy link
Copy Markdown

oasdiff bot commented Apr 11, 2026

oasdiff API Change Report

🔴 2 breaking changes · 🟢 2 info

Severity Change Path Review
🔴 the response property id became optional for the status 200 GET /pets Review
🔴 the response property id became optional for the status 200 GET /pets/{petId} Review
🟢 added the optional property breed to the response with the 200 status GET /pets/{petId} View
🟢 added the optional property breed to the response with the 200 status GET /pets View

Compared at 5abc37c · 📋 Review & approve changes

@reuvenharrison reuvenharrison deleted the demo/breaking-change-pet-schema branch April 11, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant