I'm writing a RAML where response is an XML that corresponds to one particular type among many other types defined in an external XSD. Is there a way to specify the particular type name from the XSD when defining parameter in RAML? I.e. now I define it something like this:
responses:
200:
body:
application/xml:
schema: !include schemas/ManyManyTypesInside.xsd
But I would like to specify a particular type defined in the xsd to be used as a response type.
Note, that I don't wanna extract the type to a new file.
The answer on the question depends on the RAML version.
Version 0.8 does not support referring to inner elements of XML Schema.
This feature has been added in RAML v1.0 and the format is like this:
schema: !include elements.xsd#Foo