Closed guybedo closed 9 years ago
https://github.com/swagger-api/swagger-ui/issues/810 for reference
pull request: https://github.com/krakenjs/swaggerize-hapi/pull/26
Does changing the collectionFormat
property of the parameter to multi
change how swagger-ui
constructs the url? See: https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#parameter-object- and collectionFormat
.
Swagger UI now supports collectionFormat properly.
the swagger spec allows definition of query parameters of type array but queries generated using swagger-ui are not accepted by swaggerize-hapi.
For example, i have this definition for a get request :
The server accepts requests with the "fields" parameter encoded in these formats: fields[]=date,title,description fields=date&fields=title&fields=description
BUT swagger-ui generates this kind of request : http://test.api.com/request?fields=date,title,description This request is not accepted by the server and i have a 400 response :'fields must be an array'
So it seems that the implementation does not respect the swagger spec