Skip to content

Conversation

@tombuildsstuff
Copy link

Breaking changes happen when the Request payload between one version of the API and another version of the API are incompatible - meaning that the minimum viable payload from the old API version does not work with the new API version.

In the event of a new Optional field being added to the Request (or Response) payload the minimum viable request payload remains valid, therefore provided the field is correctly flagged as Required/Optional, we can lean on that to determine whether a breaking change is actually a breaking change.

This fixes an issue seen in Azure/azure-rest-api-specs#26680 and Azure/azure-rest-api-specs#22407 and Azure/azure-rest-api-specs#25080 where the API Definition doesn't correctly document all of the possible fields within the Request/Response payloads.

Since this is going a conditional check, this commit changes this from an Error to a Warning - as whilst there are situations where this can be a breaking change; this requires understanding the change.

…s as a breaking change

Breaking changes happen when the Request payload between one version of the API and
another version of the API are incompatible - meaning that the minimum viable payload
from the old API version does not work with the new API version.

In the event of a new Optional field being added to the Request (or Response) payload
the minimum viable request payload remains valid, therefore provided the field is
correctly flagged as Required/Optional, we can lean on that to determine whether a
breaking change is actually a breaking change.

This fixes an issue seen in Azure/azure-rest-api-specs#26680
and Azure/azure-rest-api-specs#22407 and
Azure/azure-rest-api-specs#25080 where the API Definition
doesn't correctly document all of the possible fields within the Request/Response
payloads.

Since this is going a conditional check, this commit changes this from an Error to a
Warning - as whilst there are situations where this can be a breaking change; this
requires understanding the change.
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