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

Parser does validate missing responses #152

Closed IvanGoncharov closed 8 years ago

IvanGoncharov commented 9 years ago

According to RAML spec:

Responses MUST be a map of one or more HTTP status codes, where each status code itself is a map that describes that status code.

But raml-parser validates following constructions:

responses: 
    204: 

Real life example: https://github.com/raml-apis/GitHub/blob/staging/api.raml#L2121

dmartinezg commented 8 years ago

At the same time, RAML was designed so that missing stuff does not punish you, when a value is mandatory, the RAML spec says so, otherwise, a null is allowed.