Nested schema doesn't get resolved


#1

I declared a schema for a request. Inside the Schema there is another schema. Unfortunately the nested schema doesn’t get resolved by the RAML API Designer.

What I tried

  • reference the nested schema via URI (like described in the json schema reference)

  • reference the other schema by the name of the schema how it was included in the .raml file

     {
       "$schema": "http://json-schema.org/draft-04/schema#",
       "title":"Collection of Foo",
       "type":"array",
       "items":
        {
         "$ref":"http://foo.bar/innerschema.json" / "innerschema.json" / "innerschema" none of them work
        }
      }
    

Any plans why? I would like to have that it is also shown within the generated api documentation (when i expand it via the button ‘show schema’).


#2

It is a known problem and due to fix on the js parser. See here: