I have looked in the V1 spec and can not find a good example for what I am trying to do. I am trying to do my examples in RAML in the hope it will save me from separate JSON and XML even though I know there are lots of converters. What I am trying to represent is something that has multiple datatypes. Class1 contains an array of class2 that has several properties one of which is also an array which is another class. something like
Class1 property1 property 2 property 3 (which is really an array of class 2 Class 2 property 1 property 2 property 3 property 4 (which is an array of Class 3) Class 3 same thing and this would be the final level
This all works just fine with the datatype definitions whether in the api.raml file or in a datatypes directory with !include.
I can not seem to get a RAML example to work to represent this.