REST contract compatibility — openapi.yaml
openapi.yaml at the review base ad1fb1d3 against the working tree, read by oasdiff 1.34.1 — an independent, open-source differ. It resolves $refs, so an operation is listed here because of any schema it reaches, not only because its own paths entry moved. Every line below carries the rule id that produced it.
INCOMPATIBLENot backward compatible
1 change across 1 operation would break a client that is already calling this API.
openapi.yaml at the review base ad1fb1d3 against the working tree, read by oasdiff 1.34.1 — an independent, open-source differ. It resolves $refs, so an operation is listed here because of any schema it reaches, not only because its own paths entry moved. Every line below carries the rule id that produced it.
What breaks 1
GET/api/visits
- breaking the response's body
type changed from array<object> to object for status 200 response-body-type-changed
The shape a caller sends and gets back
Grey is the contract as it was. Red is added, red struck through is removed. $refs are resolved, so a schema that moved shows up here, at every operation that serves it. Example values are the spec's own.
Requestpath & query parameters, then the body3 changed
page (query)integer
size (query)integer
sort (query)string
Response200 - the primary success body10 changed
bodyVisitDto[] VisitPageDtoOne page of the visits grid, with the paging and sorting actually applied.
[ ]VisitDto
datestringformat datee.g. 2013-01-01The date of the visit.
descriptionstringwas requiredminLength 1, maxLength 255e.g. rabies shotThe description for the visit.
idintegerwas requiredreadOnlyformat int32, minimum 0e.g. 1The ID of the visit.
ownerFirstNamestringreadOnlyFirst name of the owner (server-populated).
ownerIdintegerreadOnlyformat int32ID of the owner of the pet (server-populated).
ownerLastNamestringreadOnlyLast name of the owner (server-populated).
petIdintegerwas requiredformat int32, minimum 0e.g. 1The ID of the pet.
petNamestringreadOnlyName of the pet (server-populated).
Compatible movement 1
GET/api/visits9 compatible changes besides the break above
- added the new optional
query request parameter page new-optional-request-parameter - added the new optional
query request parameter size new-optional-request-parameter - added the new optional
query request parameter sort new-optional-request-parameter - added the required property
content to the response with the 200 status response-required-property-added - added the required property
page to the response with the 200 status response-required-property-added - added the required property
size to the response with the 200 status response-required-property-added - added the required property
sort to the response with the 200 status response-required-property-added - added the required property
totalElements to the response with the 200 status response-required-property-added - added the required property
totalPages to the response with the 200 status response-required-property-added
The shape a caller sends and gets back
Grey is the contract as it was. Red is added, red struck through is removed. $refs are resolved, so a schema that moved shows up here, at every operation that serves it. Example values are the spec's own.
Requestpath & query parameters, then the body3 changed
page (query)integer
size (query)integer
sort (query)string
Response200 - the primary success body10 changed
bodyVisitDto[] VisitPageDtoOne page of the visits grid, with the paging and sorting actually applied.
[ ]VisitDto
datestringformat datee.g. 2013-01-01The date of the visit.
descriptionstringwas requiredminLength 1, maxLength 255e.g. rabies shotThe description for the visit.
idintegerwas requiredreadOnlyformat int32, minimum 0e.g. 1The ID of the visit.
ownerFirstNamestringreadOnlyFirst name of the owner (server-populated).
ownerIdintegerreadOnlyformat int32ID of the owner of the pet (server-populated).
ownerLastNamestringreadOnlyLast name of the owner (server-populated).
petIdintegerwas requiredformat int32, minimum 0e.g. 1The ID of the pet.
petNamestringreadOnlyName of the pet (server-populated).