com.atlassian.oai.validator.wiremock.junit5.OpenApiValidationException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-request-validator-wiremock-junit5 Show documentation
Show all versions of swagger-request-validator-wiremock-junit5 Show documentation
OpenAPI / Swagger validation for WireMock HTTP mocks, compatible with JUnit5.
package com.atlassian.oai.validator.wiremock.junit5;
import com.atlassian.oai.validator.report.JsonValidationReportFormat;
import com.atlassian.oai.validator.report.ValidationReport;
public class OpenApiValidationException extends RuntimeException {
private final ValidationReport report;
public OpenApiValidationException(final ValidationReport report) {
super(JsonValidationReportFormat.getInstance().apply(report));
this.report = report;
}
public ValidationReport getValidationReport() {
return report;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy