[v2.0] Version 2.0.0-rc2 of Wiremock Validator gets an error with a version 3.0 valid schema
Issue #146
resolved
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)
-
Account Deactivated -
- edited description
- changed title to [v2.0] Version 2.0.0-rc2 of Wiremock Validator gets an error with a version 3.0 valid schema
-
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.
-
- changed status to open
-
- changed status to resolved
Closed due to inactivity.
- Log in to comment
Issue created by me