OpenAPITools / openapi-diff

Utility for comparing two OpenAPI specifications.
Apache License 2.0
809 stars 154 forks source link

incompatible api diff result when one of property in model becomes not required #535

Open lbxxxxx2a opened 1 year ago

lbxxxxx2a commented 1 year ago

if in new api version some property is not required anymore, new api is recognized as not compatible

old api schema definition:

"SomeDto": {
        "required": [
          "prop1",
          "prop2",
          "prop3"
        ], ...

new api schema definition:

"SomeDto": {
        "required": [
          "prop1"
        ], ...
typekpb commented 11 months ago

same issue here

joschi commented 9 months ago

@lbxxxxx2a @typekpb Could you please provide a minimal set of OpenAPI specifications to demonstrate the issue?