Closed alecthomas closed 9 years ago
That sounds like it could be a bug in the parser, but then again we also didn't officially document the displayName
property of methods, though we certainly had it in mind as evidenced by all the examples. Let me go back and check...
Any update on this issue?
There is an inconsistency between the spec., example and the parser. This was implemented via this PR as seen here.
Open issue on the spec.: Add displayName for methods #74
Thank you @aldonline.
Hello @palanik . Note: We still haven't NPM published the latest version ( 0.8.9 ). So you will have install manually by cloning the master branch and then running NPM install. It will be done in the next few days.
Got it. For now, I'm pulling the lib from git for development. ("raml-parser": "https://github.com/raml-org/raml-js-parser/tarball/master")
@palanik published ;)
@aldonline Thanks again. Looks good.
The spec doesn't seem to specifically mention
displayName
on methods, but examples within the spec include them. See the third example here:The RAML JS parser seems to disallow this.