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

queryParameters and formParameters formats are inconsistent #122

Open
johnlinp opened this issue Jan 2, 2017 · 0 comments
Open

queryParameters and formParameters formats are inconsistent #122

johnlinp opened this issue Jan 2, 2017 · 0 comments

Comments

@johnlinp
Copy link

johnlinp commented Jan 2, 2017

In the following RAML:

/some/api:
  get:
    queryParameters:
      some_query_string:
        type: string
        required: true
  post:
    body:
      application/x-www-form-urlencoded:
        formParameters:
          some_form_string:
            required: true
            type: string

I was excepting that query_params and form_params are in the same format since they are in similar structure. However, query_params is a list of QueryParameter, while form_params is a OrderedDict with parameter names as the keys.

Is there any change to make them consistent? For example, make them list of QueryParameter and FormParameter?

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