Java: generated API including square brackets in request URL

18 views
Skip to first unread message

jack

unread,
Feb 19, 2018, 12:17:03 PM2/19/18
to Swagger
Hello,

Using a swagger generated java client for the Transport for London unified API (definition: https://api.tfl.gov.uk/swagger/docs/v1).

The generated client is forming the calls to the API by calling toString on the array parameters, which then includes the square brackets and causes the request to fail.

Using swagger codegen maven plugin version 2.3.1.

Is this down to a mistake in the swagger definition or in swagger itself?



Any help much appreciated!
Reply all
Reply to author
Forward
0 new messages