Skip to content

2.0.0

Compare
Choose a tag to compare
@joschi joschi released this 05 Dec 15:26
· 348 commits to master since this release

This is the first stable release of OpenAPI-Diff under the umbrella of the OpenAPI Tools organization.

Many thanks to all contributors, especially the OpenAPI Tools team (@jmini, @jimschubert, @wing328) for their support during on-boarding, and @misterjoshua for contributing the OpenAPI-Diff Maven plugin and joining the development team.

πŸ’¬ Release discussion: #297
ℹ️ Milestone: https://github.com/OpenAPITools/openapi-diff/milestone/1?closed=1

Installation

Maven/Gradle

OpenAPI-Diff is available on Maven Central:

<dependency>
  <groupId>org.openapitools.openapidiff</groupId>
  <artifactId>openapi-diff-core</artifactId>
  <version>2.0.0</version>
</dependency>
dependencies {
    implementation("org.openapitools.openapidiff:openapi-diff-core:2.0.0")
}

Docker

OpenAPI-Diff is available on Docker Hub as openapitools/openapi-diff:

# docker run --rm openapitools/openapi-diff:2.0.0
usage: openapi-diff <old> <new>
[...]

Command Line

# curl -o openapi-diff.jar 'https://repo1.maven.org/maven2/org/openapitools/openapidiff/openapi-diff-cli/2.0.0/openapi-diff-cli-2.0.0-all.jar'
# java -jar openapi-diff.jar --help
usage: openapi-diff <old> <new>
[...]

Maven Plugin

OpenAPI-Diff is also available as Maven plugin to include into your build:

<plugin>
  <groupId>org.openapitools.openapidiff</groupId>
  <artifactId>openapi-diff-maven</artifactId>
  <version>2.0.0</version>
  <executions>
    <execution>
      <goals>
        <goal>diff</goal>
      </goals>
      <configuration>
        <!-- Reference specification (perhaps your prod schema) -->
        <oldSpec>https://petstore3.swagger.io/api/v3/openapi.json</oldSpec>
        <!-- Specification generated by your project in the compile phase -->
        <newSpec>${project.basedir}/target/openapi.yaml</newSpec>
        <!-- Fail only if API changes broke backward compatibility (default: false) -->
        <failOnIncompatible>true</failOnIncompatible>
        <!-- Fail if API changed (default: false) -->
        <failOnChanged>true</failOnIncompatible>
      </configuration>
    </execution>
  </executions>
</plugin>

What's Changed

Full Changelog: 1.2.0...2.0.0

New features and bug fixes

Dependency updates

  • Set swagger-parser version to 2.0.1 by @jmini in #47
  • Update Swagger-Parser to 2.0.4 by @jmini in #56
  • build(deps): bump swagger-parser-v3 from 2.0.13 to 2.0.17 by @dependabot in #115
  • build(deps): bump swagger-parser-v3 from 2.0.5 to 2.0.13 by @dependabot in #86
  • build(deps): bump swagger-parser.version from 2.0.21 to 2.0.22 by @dependabot in #177
  • build(deps): bump swagger-parser.version from 2.0.22 to 2.0.23 by @dependabot in #194
  • build(deps): bump swagger-parser.version from 2.0.24 to 2.0.25 by @dependabot in #222
  • build(deps): bump swagger-parser.version from 2.0.25 to 2.0.26 by @dependabot in #238
  • build(deps): bump swagger-parser.version from 2.0.26 to 2.0.27 by @dependabot in #247
  • build(deps): bump swagger-parser.version from 2.0.27 to 2.0.28 by @dependabot in #265
  • build(deps): bump commons-cli from 1.4 to 1.5.0 by @dependabot in #274
  • build(deps): bump commons-collections4 from 4.0 to 4.4 by @dependabot in #87
  • build(deps): bump commons-lang3 from 3.11 to 3.12.0 by @dependabot in #217
  • build(deps): bump j2html from 1.2.0 to 1.4.0 by @dependabot in #99
  • build(deps): bump j2html from 1.4.0 to 1.5.0 by @dependabot in #241
  • build(deps): bump lombok from 1.18.10 to 1.18.12 by @dependabot in #131
  • build(deps): bump lombok from 1.18.12 to 1.18.14 by @dependabot in #179
  • build(deps): bump lombok from 1.18.2 to 1.18.8 by @dependabot in #78
  • build(deps): bump lombok from 1.18.8 to 1.18.10 by @dependabot in #103
  • build(deps): bump slf4j-api from 1.7.25 to 1.7.28 by @dependabot in #92
  • build(deps): bump slf4j-api from 1.7.28 to 1.7.30 by @dependabot in #113
  • build(deps): bump slf4j-log4j12 from 1.7.25 to 1.7.30 by @dependabot in #112
  • build(deps): bump slf4j.version from 1.7.30 to 1.7.31 by @dependabot in #245
  • build(deps): bump slf4j.version from 1.7.31 to 1.7.32 by @dependabot in #250
  • build(deps): bump actions/cache from 2.1.5 to 2.1.6 by @dependabot in #237
  • build(deps): bump actions/cache from 2.1.6 to 2.1.7 by @dependabot in #291
  • build(deps): bump actions/cache from v1 to v2.1.1 by @dependabot in #162
  • build(deps): bump actions/cache from v2.1.1 to v2.1.2 by @dependabot in #180
  • build(deps): bump actions/cache from v2.1.2 to v2.1.3 by @dependabot in #196
  • build(deps): bump actions/cache from v2.1.3 to v2.1.4 by @dependabot in #214
  • build(deps): bump actions/cache from v2.1.4 to v2.1.5 by @dependabot in #223
  • build(deps): bump actions/checkout from 2 to 2.3.4 by @dependabot in #231
  • build(deps): bump actions/checkout from 2.3.4 to 2.3.5 by @dependabot in #273
  • build(deps): bump actions/checkout from 2.3.5 to 2.4.0 by @dependabot in #275
  • build(deps): bump actions/setup-java from v1 to v2 by @dependabot in #221
  • build(deps): bump assertj-core from 3.10.0 to 3.13.2 by @dependabot in #90
  • build(deps): bump assertj-core from 3.13.2 to 3.14.0 by @dependabot in #107
  • build(deps): bump assertj-core from 3.14.0 to 3.17.0 by @dependabot in #160
  • build(deps): bump assertj-core from 3.17.0 to 3.17.1 by @dependabot in #166
  • build(deps): bump assertj-core from 3.17.1 to 3.17.2 by @dependabot in #169
  • build(deps): bump assertj-core from 3.17.2 to 3.18.0 by @dependabot in #193
  • build(deps): bump assertj-core from 3.18.0 to 3.18.1 by @dependabot in #197
  • build(deps): bump assertj-core from 3.18.1 to 3.19.0 by @dependabot in #210
  • build(deps): bump assertj-core from 3.19.0 to 3.20.0 by @dependabot in #243
  • build(deps): bump assertj-core from 3.20.0 to 3.20.1 by @dependabot in #244
  • build(deps): bump assertj-core from 3.20.1 to 3.20.2 by @dependabot in #246
  • build(deps): bump assertj-core from 3.20.2 to 3.21.0 by @dependabot in #262
  • build(deps): bump fmt-maven-plugin from 2.6.0 to 2.9 by @dependabot in #83
  • build(deps): bump githook-maven-plugin from 1.0.0 to 1.0.4 by @dependabot in #97
  • build(deps): bump githook-maven-plugin from 1.0.4 to 1.0.5 by @dependabot in #135
  • build(deps): bump jacoco-maven-plugin from 0.8.6 to 0.8.7 by @dependabot in #228
  • build(deps): bump joschi/setup-jdk from v1 to v2.2.0 by @dependabot in #163
  • build(deps): bump joschi/setup-jdk from v2.2.0 to v2.3.0 by @dependabot in #178
  • build(deps): bump junit-bom from 5.6.2 to 5.7.0 by @dependabot in #171
  • build(deps): bump junit-bom from 5.7.0 to 5.7.1 by @dependabot in #213
  • build(deps): bump junit-bom from 5.7.1 to 5.7.2 by @dependabot in #233
  • build(deps): bump junit-bom from 5.7.2 to 5.8.0 by @dependabot in #259
  • build(deps): bump junit-bom from 5.8.0 to 5.8.1 by @dependabot in #263
  • build(deps): bump junit-bom from 5.8.1 to 5.8.2 by @dependabot in #294
  • build(deps): bump junit.jupiter.version from 5.1.0 to 5.4.2 by @dependabot in #75
  • build(deps): bump junit.jupiter.version from 5.4.2 to 5.5.2 by @dependabot in #102
  • build(deps): bump junit.jupiter.version from 5.5.2 to 5.6.2 by @dependabot in #141
  • build(deps): bump junit.platform.version from 1.1.0 to 1.3.2 by @dependabot in #100
  • build(deps): bump maven-compiler-plugin from 3.2 to 3.8.1 by @dependabot in #80
  • build(deps): bump maven-gpg-plugin from 1.6 to 3.0.1 by @dependabot in #229
  • build(deps): bump maven-javadoc-plugin from 3.0.0 to 3.1.1 by @dependabot in #98
  • build(deps): bump maven-javadoc-plugin from 3.1.1 to 3.2.0 by @dependabot in #133
  • build(deps): bump maven-javadoc-plugin from 3.2.0 to 3.3.0 by @dependabot in #235
  • build(deps): bump maven-javadoc-plugin from 3.3.0 to 3.3.1 by @dependabot in #258
  • build(deps): bump maven-plugin-plugin from 3.6.0 to 3.6.1 by @dependabot in #283
  • build(deps): bump maven-plugin-plugin from 3.6.1 to 3.6.2 by @dependabot in #295
  • build(deps): bump maven-site-plugin from 3.8.2 to 3.9.1 by @dependabot in #285
  • build(deps): bump maven-source-plugin from 3.0.1 to 3.1.0 by @dependabot in #81
  • build(deps): bump maven-source-plugin from 3.1.0 to 3.2.1 by @dependabot in #116
  • build(deps): bump maven-surefire-plugin from 2.19.1 to 2.22.2 by @dependabot in #84
  • build(deps): bump rokroskar/workflow-run-cleanup-action from v0.2.2 to v0.3.0 by @dependabot in #205
  • build(deps): bump rokroskar/workflow-run-cleanup-action from v0.3.0 to v0.3.1 by @dependabot in #218
  • build(deps): bump rokroskar/workflow-run-cleanup-action from v0.3.1 to v0.3.2 by @dependabot in #219
  • build(deps): bump rokroskar/workflow-run-cleanup-action from v0.3.2 to v0.3.3 by @dependabot in #225
  • build(deps): bump sonar-maven-plugin from 3.7.0.1746 to 3.8.0.2131 by @dependabot in #209
  • build(deps): bump sonar-maven-plugin from 3.8.0.2131 to 3.9.0.2155 by @dependabot in #227
  • build(deps): bump sonar-maven-plugin from 3.9.0.2155 to 3.9.1.2184 by @dependabot in #277
  • Bump Maven to version 3.8.4

New Contributors