Closed alexresta closed 8 years ago
Hi @alexresta, thanks for reporting, we will take care of this right away.
seems to work! :)
any idea when it will be available as a release? thanks a lot!
Hey @alexresta, I just released v0.8.16 in npm.
gracias crack!
The thing is that if you define methods as optional it doesn't include the traits (headers, queryparameters etc) in the parsed tree.
It does when you force them as required, but then you are breaking the "optional" thing, if you want to define a resource of that type that has a GET and a POST method, but another resource that only implements the GET...
As an example, I have the following very simple RAML, which defines a single trait, a resource type with forced POST and optional GET and a resource.
If you parse this raml you will see that the POST method has headers in there and the GET doesn't inherit them from the resourceType.