OpenAPITools / openapi-diff

Utility for comparing two OpenAPI specifications.
Apache License 2.0
787 stars 152 forks source link

Add skip configuration for maven plugin #445

Closed FARHANE closed 1 year ago

FARHANE commented 1 year ago

actually there is 4 configuration parameters failOnChanged failOnIncompatible newSpec and oldSpec. we need new parameter to skip the maven goal.

FARHANE commented 1 year ago
 @Parameter(property = "skip", defaultValue = "false")
  Boolean skip = false;

  @Override
  public void execute() throws MojoExecutionException, MojoFailureException {
    if(Boolean.TRUE.equals(skip)) {
      getLog().info("Skipping openapi-diff execution as per configuration");
      return;
    }
    ...
joschi commented 1 year ago

@FARHANE Thanks for reporting this!

It looks like you already have half the pull request ready. 😉