add an additional construction

Issue #119 duplicate
Former user created an issue

Add the following constructor to the open source project: https://bitbucket.org/atlassian/swagger-request-validator/src/267f1c2342a93a5bc236a74094bb4d73404a29b3/swagger-request-validator-pact/?at=master

public ValidatedPactProviderRule(final String swaggerJsonUrl, final String basePathOverride, final String providerId, final Object target, String host, int port) { this.delegate = new PactProviderRule(providerId, host, port, target); this.providerId = providerId; this.target = target;

   this.validator = SwaggerRequestResponseValidator
           .createFor(swaggerJsonUrl)
           .withLevelResolver(PactLevelResolverFactory.create())
           .withBasePathOverride(basePathOverride)
           .build();

}

Comments (4)

  1. James Navin

    Just to confirm - what you're looking for is a way to override the host/port used in the underlying PactProviderRule?

  2. Log in to comment