coub / raml_ruby

Raml Ruby
MIT License
93 stars 27 forks source link

Does not support form parameters for multipart/form-data #2

Open KevinColemanInc opened 10 years ago

KevinColemanInc commented 10 years ago

Error Message:

NoMethodError: undefined method `form_parameters=' for #<Raml::Body:0x007fe64c715798 @media_type="multipart/form-data">

RAML example:

   multipart/form-data:
     formParameters:

Source as to why this is a problem:

"If the API's media type is either application/x-www-form-urlencoded or multipart/form-data, the formParameters property MUST specify the name-value pairs that the API is expecting." https://github.com/raml-org/raml-spec/blob/master/raml-0.8.md