Support Pact Specification V4

Issue #773 resolved
Adam Roberts created an issue

Requires supporting Pact 4.6.0 first https://bitbucket.org/atlassian/swagger-request-validator/issues/772

Currently attempting to validate a Pact V4 Specification results in:

java.lang.ClassCastException: class au.com.dius.pact.core.model.V4Interaction$SynchronousHttp cannot be cast to class au.com.dius.pact.core.model.RequestResponseInteraction (au.com.dius.pact.core.model.V4Interaction$SynchronousHttp and au.com.dius.pact.core.model.RequestResponseInteraction are in unnamed module of loader 'app')

Which is caused by an unchecked cast to RequestResponseInteraction and V4 specifications do not create an instance of RequestResponsePact when loaded from disk.

Comments (1)

  1. Log in to comment