jdiegodcp / ramlfications

Python parser for RAML
https://ramlfications.readthedocs.org
Apache License 2.0
234 stars 50 forks source link

queryParameters and formParameters formats are inconsistent #122

Open johnlinp opened 7 years ago

johnlinp commented 7 years ago

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?