Closed egoodhall closed 2 years ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
src/main/java/com/deepoove/swagger/diff/compare/SpecificationDiff.java | 25 | 27 | 92.59% | ||
src/main/java/com/deepoove/swagger/diff/SwaggerDiff.java | 7 | 10 | 70.0% | ||
src/main/java/com/deepoove/swagger/diff/model/ChangedOperation.java | 9 | 13 | 69.23% | ||
src/main/java/com/deepoove/swagger/diff/output/MarkdownRender.java | 132 | 139 | 94.96% | ||
<!-- | Total: | 371 | 387 | 95.87% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
src/main/java/com/deepoove/swagger/diff/output/MarkdownRender.java | 1 | 96.6% | ||
<!-- | Total: | 1 | --> |
Totals | |
---|---|
Change from base Build 47: | 1.05% |
Covered Lines: | 942 |
Relevant Lines: | 1016 |
This PR adds vendor extension support to swagger-diff. To enable the vendor extensions, you can use the same methods as normal (compareV1/compareV2), with a 3rd argument (boolean) that will enable vendor extensions if true. The original API still exists, so there shouldn't be any issues with backwards compatibility
Vendor extensions are shown in the rendered Markdown and HTML just like any other changed value, as can be seen below in the partial diff rendering (vendor extensions start with
x-
):x-create-info-ext
x-remove-info-ext
x-change-info-ext
:change me!→ i was changed!x-create-security-ext
x-remove-security-ext
x-change-security-ext
:change me!→ i was changed!x-create-tags-ext
x-remove-tags-ext
x-change-tags-ext
:change me!→ i was changed!x-create-path-ext
x-remove-path-ext
x-change-path-ext
:change me!→ i was changed!POST
/pet Add a new pet to the storex-create-method-ext
x-remove-method-ext
x-change-method-ext
:change me!→ i was changed!tags
//add new query param demobody.newFeild
//a feild demo by sayibody.category.newCatFeild
body
:x-create-param-ext
x-remove-param-ext
x-change-param-ext
:change me!→ i was changed!body.category.name
x-create-response-ext
x-remove-response-ext
x-change-response-ext
:change me!→ i was changed!This PR addresses #15.