diff --git a/pom.xml b/pom.xml index 5605655a0..d77f6ba1b 100644 --- a/pom.xml +++ b/pom.xml @@ -1,222 +1,222 @@ - - 4.0.0 - - - org.sonatype.oss - oss-parent - 7 - - - com.qdesrame - openapi-diff - 1.2.1-SNAPSHOT - jar - - openapi-diff - Utility for comparing two OpenAPI specifications. - http://maven.apache.org - - - - The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - - - - - - qdesrame - quen2404@gmail.com - - - - - scm:git:http://github.com/quen2404/openapi-diff.git - scm:git:http://github.com/quen2404/openapi-diff.git - https://github.com/quen2404/openapi-diff - HEAD - - - - - sonatype-nexus-snapshots - Sonatype Nexus snapshot repository - https://oss.sonatype.org/content/repositories/snapshots - - - sonatype-nexus-staging - Sonatype Nexus release repository - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - - - UTF-8 - github - - - - - io.swagger.parser.v3 - swagger-parser-v3 - 2.0.0-rc3 - - - com.j2html - j2html - 1.2.0 - - - com.alibaba - fastjson - 1.2.7 - - - junit - junit - 4.8.2 - test - - - org.apache.commons - commons-collections4 - 4.0 - - - commons-cli - commons-cli - 1.4 - - - org.slf4j - slf4j-api - 1.7.25 - - - org.slf4j - slf4j-log4j12 - 1.7.25 - - - commons-httpclient - commons-httpclient - 3.1 - - - org.projectlombok - lombok - 1.16.18 - - - - - - release-sign-artifacts - - - performRelease - true - - - - - - org.apache.maven.plugins - maven-gpg-plugin - 1.6 - - - - --pinentry-mode - loopback - - - - - - sign-artifacts - verify - - sign - - - - - - - - - - - - maven-compiler-plugin - - 1.8 - 1.8 - UTF-8 - - 3.2 - - - org.apache.maven.plugins - maven-source-plugin - 3.0.1 - - - package - - jar-no-fork - - - - - - org.apache.maven.plugins - maven-release-plugin - 2.5.3 - - - @{project.version} - true - releases - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.0.0 - - true - true - true - true - true - - - - attach-javadocs - - jar - - - - - - maven-assembly-plugin - - - - com.qdesrame.openapi.diff.Main - - - - jar-with-dependencies - - - - - - + + 4.0.0 + + + org.sonatype.oss + oss-parent + 7 + + + com.qdesrame + openapi-diff + 1.2.1-SNAPSHOT + jar + + openapi-diff + Utility for comparing two OpenAPI specifications. + http://maven.apache.org + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + + qdesrame + quen2404@gmail.com + + + + + scm:git:http://github.com/quen2404/openapi-diff.git + scm:git:http://github.com/quen2404/openapi-diff.git + https://github.com/quen2404/openapi-diff + HEAD + + + + + sonatype-nexus-snapshots + Sonatype Nexus snapshot repository + https://oss.sonatype.org/content/repositories/snapshots + + + sonatype-nexus-staging + Sonatype Nexus release repository + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + UTF-8 + github + + + + + io.swagger.parser.v3 + swagger-parser-v3 + 2.0.0 + + + com.j2html + j2html + 1.2.0 + + + com.alibaba + fastjson + 1.2.7 + + + junit + junit + 4.8.2 + test + + + org.apache.commons + commons-collections4 + 4.0 + + + commons-cli + commons-cli + 1.4 + + + org.slf4j + slf4j-api + 1.7.25 + + + org.slf4j + slf4j-log4j12 + 1.7.25 + + + commons-httpclient + commons-httpclient + 3.1 + + + org.projectlombok + lombok + 1.16.18 + + + + + + release-sign-artifacts + + + performRelease + true + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + + --pinentry-mode + loopback + + + + + + sign-artifacts + verify + + sign + + + + + + + + + + + + maven-compiler-plugin + + 1.8 + 1.8 + UTF-8 + + 3.2 + + + org.apache.maven.plugins + maven-source-plugin + 3.0.1 + + + package + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-release-plugin + 2.5.3 + + + @{project.version} + true + releases + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.0.0 + + true + true + true + true + true + + + + attach-javadocs + + jar + + + + + + maven-assembly-plugin + + + + com.qdesrame.openapi.diff.Main + + + + jar-with-dependencies + + + + + + diff --git a/src/main/java/com/qdesrame/openapi/diff/compare/HeaderDiff.java b/src/main/java/com/qdesrame/openapi/diff/compare/HeaderDiff.java index 3aea95ff9..f15badf47 100644 --- a/src/main/java/com/qdesrame/openapi/diff/compare/HeaderDiff.java +++ b/src/main/java/com/qdesrame/openapi/diff/compare/HeaderDiff.java @@ -39,7 +39,6 @@ protected Optional computeDiff(HashSet refSet, Header lef changedHeader.setChangeDescription(!Objects.equals(left.getDescription(), right.getDescription())); changedHeader.setChangeRequired(getBooleanDiff(left.getRequired(), right.getRequired())); changedHeader.setChangeDeprecated(!Boolean.TRUE.equals(left.getDeprecated()) && Boolean.TRUE.equals(right.getDeprecated())); - changedHeader.setChangeAllowEmptyValue(getBooleanDiff(left.getAllowEmptyValue(), right.getAllowEmptyValue())); changedHeader.setChangeStyle(!Objects.equals(left.getStyle(), right.getStyle())); changedHeader.setChangeExplode(getBooleanDiff(left.getExplode(), right.getExplode())); openApiDiff.getSchemaDiff().diff(new HashSet<>(), left.getSchema(), right.getSchema()).ifPresent(changedHeader::setChangedSchema); diff --git a/src/main/java/com/qdesrame/openapi/diff/model/ChangedHeader.java b/src/main/java/com/qdesrame/openapi/diff/model/ChangedHeader.java index a79af7800..a8d1124d7 100644 --- a/src/main/java/com/qdesrame/openapi/diff/model/ChangedHeader.java +++ b/src/main/java/com/qdesrame/openapi/diff/model/ChangedHeader.java @@ -16,7 +16,6 @@ public class ChangedHeader implements Changed { private boolean changeDescription; private boolean changeRequired; private boolean changeDeprecated; - private boolean changeAllowEmptyValue; private boolean changeStyle; private boolean changeExplode; private ChangedSchema changedSchema; @@ -32,7 +31,6 @@ public boolean isDiff() { return changeDescription || changeRequired || changeDeprecated - || changeAllowEmptyValue || changeStyle || changeExplode || (changedSchema != null && changedSchema.isDiff()) @@ -42,7 +40,6 @@ public boolean isDiff() { @Override public boolean isDiffBackwardCompatible() { return changeRequired - && changeAllowEmptyValue && changeStyle && changeExplode && (changedSchema == null || changedSchema.isDiffBackwardCompatible(false))