- changed status to closed
NumberFormatException when response UUID
Issue #76
closed
Hello i'm using swagger-request-validator with wiremock.
Wiremock stub:
val fileKey = s""""${UUID.randomUUID()}""""
stubFor(
post(urlEqualTo(endpoint))
.willReturn(aResponse().withStatus(201).withHeader("Content-Type", "text/plain").withBody(fileKey)))
The following response:
responses:
'201':
description: DocumentId
schema:
type: string
format: uuid
Of a POST request generates this error:
java.lang.NumberFormatException, with message: For input string: ""0272a8d7".
Comments (1)
-
- Log in to comment
Closing due to inactivity. If this is still an issue with the latest version of the validator, please feel free to re-open.