raml-org / raml-js-parser

(deprecated) A RAML parser based on PyYAML written in CoffeScript and available for use as NodeJs module or in-browser.
195 stars 53 forks source link

Add support for parameter 'description' in request 'body' #142

Closed zbycz closed 9 years ago

zbycz commented 9 years ago

Hi,

the raml specification allows description in body, but this validator didnt have the function implement.

I'm not familiar with this project much, so I updated only validator.coffee - should I update elsewhere?

RAML spec - Named parameters ... for the following properties: URI parameters, query string parameters, form parameters, request bodies (depending on the media type), and request and response headers.

btw, the grunt build failed on windows, so the dist file isnt enclosed image

blakeembrey commented 9 years ago

The description is valid when using formParameters in request bodies, as described by named parameters. Sorry it took so long to get a response.

blakeembrey commented 9 years ago

@zbycz Actually, this is the correct fix for the description issue in the body (different part of the spec), there were just some minor issues. I'll open a new PR with a test based on this.