[v2.0] Version 2.0.0-rc2 of Wiremock Validator gets an error with a version 3.0 valid schema

Issue #146 resolved
Former user created an issue

OpenAPI yaml extract:

   parameters:
    - in: query
          name: localCurrency
          schema:
            type: string
            example: GBP

Gets an error:

Invalid contract: Validation failed.
[ERROR] Unable to parse JSON - Unrecognized token 'GBP': was expecting ('true', 'false' or 'null')
     at [Source: (String)"GBP"; line: 1, column: 7].

Works if we pass a boolean or if we revert to Swagger 2.0 format.

Any advice you could give would be much appreciated, thank you.

Comments (5)

  1. James Navin

    Thanks for raising this @parshtoora

    Im having trouble reproducing this on my side. Ive setup a WireMock test that uses an OAI3 spec and everything is passing fine. Any chance you could provide a more complete spec example + example request?

    Thanks.

  2. Log in to comment