When i generate one of my own RAML files into JSON, i notice that all properties of nested models are copied into the response format description, without a reference to the original model. The type of the nested models is always object rather than the actual model name.
Then in the JSON i see the model definitions at the bottom, but a resource that returns the SearchResult model has all of the properties of SearchCriteria and Itemincorporated without and are marked as object.
When i generate one of my own RAML files into JSON, i notice that all properties of nested models are copied into the response format description, without a reference to the original model. The type of the nested models is always
object
rather than the actual model name.Suppose i have:
Then in the JSON i see the model definitions at the bottom, but a resource that returns the
SearchResult
model has all of the properties ofSearchCriteria
andItem
incorporated without and are marked asobject
.Make sense?