Skip to content

Ruby: Allow dynamic parameters #3201

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Ruby: Allow dynamic parameters #3201

wants to merge 2 commits into from

Conversation

ccouzens
Copy link
Contributor

@ccouzens ccouzens commented Jun 22, 2019

PR checklist

  • Read the contribution guidelines.
  • Ran the shell script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh, ./bin/openapi3/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in .\bin\windows\. If contributing template-only or documentation-only changes which will change sample output, be sure to build the project first.
  • Filed the PR against the correct branch: master, 4.1.x, 5.0.x. Default: master.
  • Copied the technical committee to review the pull request if your PR is targeting a particular programming language.
    No- I don't think this is going to be the accepted solution, so I won't get their attention at this point.

Description of the PR

Add an option x-allow-dynamic-resource to tell path parameters not to encode slashes (/). This provides a route for backwards compatibility for people who rely on slashes not being encoded.

I've only done this for Ruby-client.

The 1st commit is where I change the sample YAML and add the route.
The 2nd commit is when I add the extension to Ruby.

#3119

ccouzens added 2 commits June 22, 2019 17:01
x-allow-dynamic-resource will not have slash characters encoded.

Regenerate the samples.
`./bin/utils/ensure-up-to-date`

#3119
Add option to path parameters
`x-allow-dynamic-resource` which specifies to leave `/` characters
unencoded.

#3119

This is an alternative solution to
#3130
@ccouzens
Copy link
Contributor Author

I'm closing this because #3204 solved the issue instead.

@ccouzens ccouzens closed this Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant