Open spg opened 1 year ago
I think this was originally introduced in https://github.com/OpenAPITools/openapi-diff/issues/136 / https://github.com/OpenAPITools/openapi-diff/issues/137.
Happy to discuss whether it still makes sense.
https://www.rfc-editor.org/rfc/rfc7231#section-4.3.4
The RFC does say "SHOULD" and not "MUST" so I believe it would be good to make this strict check configurable
There's similar issues here: https://github.com/OpenAPITools/openapi-diff/issues/251 and https://github.com/OpenAPITools/openapi-diff/issues/264
When comparing these 2 schemas:
test/old.json
test/new.json
I get a broken compatibility message:
Note that the only change is the addition of the
url2
optional property:Since the
required
field is absent, I would expect the addition ofurl2
to not create a broken compatibility error.