backward compatible

How can we determine if an API is backward compatible with a previous version?

When is an API not backward compatible?

check backward compatibility api

An API is considered not backward compatible when changes are made that could break existing integrations. 

Requests:

  • Changing an optional attribute to required in the request body.
  • Adding a new required attribute.
  • Deleting an existing required attribute.
  • Modifying the format of an attribute.
execution for openapi diff in apiquality

Check backward compatibility in responses

Check:

  • Changing a required attribute to optional.
  • Deleting a required attribute in the response.
  • Adding a new HTTP response code.
  • Modifying the format of attributes or the response itself.

Using openapi-diff to check backward compatibility

You can manually develop compatibility checks or rely on tools to automate the process. At APIQuality, we use openapi-diff, a robust tool designed to detect these changes.

The configuration is too easy, because APIQuality helps to you.

  • Execute checks for OpenAPI differences.
  • Validate backward compatibility in both requests and responses.
openapi-diff

Try it now for free!

Do you want to check backward compatibility in your apis?

Leave a Comment

Your email address will not be published. Required fields are marked *