Skip to content

Commit

Permalink
Update ALLOF.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Reuven Harrison authored Sep 20, 2023
1 parent 91ad568 commit f65b42a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ALLOF.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Consider, for example, the following comparison of two OpenAPI specs:
oasdiff breaking data/allof/simple.yaml data/allof/revision.yaml
```

The result shows one breaking change which is due to a new subschema that was added under anyOf. But the new subschema, doesn't actually add any new constraints, because it is identical to a previously existing subschema, and, as such, this isn't a breaking chanage.
The result shows one breaking change which is due to a new subschema that was added under allOf. But the new subschema, doesn't actually add any new constraints, because it is identical to a previously existing subschema, and, as such, this isn't a breaking chanage.
You can verify this with a regular diff comparison:
```
diff --side-by-side data/allof/simple.yaml data/allof/revision.yaml
Expand All @@ -29,7 +29,6 @@ In order to see how oasdiff merges allOf, you can use the dedicated `flatten` co
oasdiff flatten data/allof/simple.yaml
```

Limitations:
The following schema fields are not merged:
- Extensions
- Default
Expand Down

0 comments on commit f65b42a

Please sign in to comment.