- edited description
Schema type change is not being recognized as breaking change
The swagger-diff library (https://www.npmjs.com/package/swagger-diff) will recognize that as a breaking change i.e. changing the schema type from integer to string.
We recently upgraded to open api 3.0 and so we now use openapi-diff as our library. However, openapi-diff doesn’t seem to detect that as breaking change. Please give advice. Thank you
Comments (6)
-
reporter -
Account Deactivated Hi Rico, diffing schemas in headers has not been implemented. You can refer to OPENAPI3.md and SWAGGER2.md for reference.
-
Account Deactivated - changed status to invalid
Diffing schemas in headers is not implemented yet
-
reporter hi Sebastian, thank you for you reply. Any suggestions on how we could handle this on our end?
-
Account Deactivated @Rico M , an option could be to create a bunch of mock interactions in a pact file, and you can use swagger-mock-validator to validate and protect from breaking changes in the spec
-
Account Deactivated - changed status to invalid
- Log in to comment