Nest resources under node?


Is there any valid way to create a document structure that will allow nesting of the resource mappings under another object node?

Something like this:


? (Note that indention does not seem to be appearing in post)


Yes there is a button for doing indentions. Its above the comment text box; the six from left hand side.


Ah here we go thanks.

Is something like this possible in raml?

#%RAML 1.0
title: foobar

From what I’ve read I don’t think that’s possible, but I wanted to check.


So you have an annotation with myNode as key and a resource node as value?


That is right… a myNode key, with a resource mapping object as value.

So in JSON it’d look like this:

  "title": "foobar",
        "/resource": { "{str}": {  "get": { ... } } }


That is not really working as the value of an annotation is defined as a type. What do you want to achieve, maybe there is another solution.