openapi-generator/modules
Chris Couzens 522a1a2372 Ruby client: escape path parameters (#3039)
* Ruby client: escape path parameters

Path parameters should be escaped when encoded into the path.

In the path '/pet/{petId}' let's pretend petId is a string instead of a
number.

If the user uses "Bobby" as the petId then they correctly get the path
'/pet/Bobby'.
But if they put 'Bobby/Tables' as the petId then they used to get the
path '/pet/Bobby/Tables' which will be interpreted by the server as a
different route.

Using CGI::Escape they now get '/pet/Bobby%2FTables' which is correct.

* Ruby client- regenerate further files

Thank you @autopp for noticing I needed to update
`samples/openapi3/client/petstore/ruby`.

Regenerated by running `bin/openapi3/ruby-client-petstore.sh`.

PR #3039
2019-06-03 00:24:30 +09:00
..
openapi-generator Ruby client: escape path parameters (#3039) 2019-06-03 00:24:30 +09:00
openapi-generator-cli Update version to 4.0.2-SNAPSHOT (#3047) 2019-06-01 21:32:44 -04:00
openapi-generator-core Update version to 4.0.2-SNAPSHOT (#3047) 2019-06-01 21:32:44 -04:00
openapi-generator-gradle-plugin [gradle plugin] Release 4.0.1 fixes (#3051) 2019-06-01 23:36:17 -04:00
openapi-generator-maven-plugin Update version to 4.0.2-SNAPSHOT (#3047) 2019-06-01 21:32:44 -04:00
openapi-generator-online Update version to 4.0.2-SNAPSHOT (#3047) 2019-06-01 21:32:44 -04:00