You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.
if I return in the test operation array of numbers in string representation, for example ["123"], swagger-tools shows an error: Error: Response validation failed: failed schema validation.
Hello
I use the latest version of swagger-tools(0.10.1).
My swagger.yaml config:
if I return in the test operation array of numbers in string representation, for example
["123"]
, swagger-tools shows an error:Error: Response validation failed: failed schema validation
.It seems that here https://github.com/apigee-127/swagger-tools/blob/master/middleware/swagger-validator.js#L116 swagger-tools converts the array elements to numbers.
Code of my controller(
test.js
):The text was updated successfully, but these errors were encountered: