Skip to content
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

Convert collectionFormat #2 - formData (application/x-www-form-urlencoded) #34

Open
hkosova opened this issue Sep 18, 2017 · 0 comments

Comments

@hkosova
Copy link

hkosova commented Sep 18, 2017

Spec: https://gist.githubusercontent.com/hkosova/f0b1ace631a93c3acc42bca0e1ae6928/raw/459e67fa395c30abdcb54ea02120075d28510f23/formData-collectionFormat.yaml

Converted spec: http://oai.swagger.io/api/convert?url=https://gist.githubusercontent.com/hkosova/f0b1ace631a93c3acc42bca0e1ae6928/raw/459e67fa395c30abdcb54ea02120075d28510f23/formData-collectionFormat.yaml

1 No collectionFormat or collectionFormat: csv should be converted to:

encoding:
  paramName:
    #style: form    # `style` defaults to `form`, so this line is optional
    explode: false

2 collectionFormat: ssv should be converted to:

encoding:
  paramName:
    style: spaceDelimited
    #explode: false     # optional - this is the default value

3 collectionFormat: tsv should be ignored (?)

4 collectionFormat: pipes should be converted to:

encoding:
  paramName:
    style: pipeDelimited
    #explode: false     # optional - this is the default value

5 collectionFormat: multi corresponds to the default seralization style (style: form + explode: true), and can be either ignored, or converted to one of the following:

encoding:
  paramName:
    style: form

encoding:
  paramName:
    explode: true

encoding:
  paramName:
    style: form
    explode: true
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

No branches or pull requests

1 participant