title: How to define an array of a type in an external file in Raml?
body: <p>If I have a file defining a Datatype <code>SimpleDuple</code>, and in another file defining another datatype called <code>DiscreetFilter</code> I want to have a property <code>values</code> to be an array of <code>SimpleDuple</code> how would I use include there?</p>
  
  <p>Consider the files for SimpleDuple:</p>
  
  <pre><code>#%RAML 1.0 DataType
  type: object
  properties:
    id: string
    name: string
  </code></pre>
  
  <p>And the other definition where I want to make a property be an array of SimpleDuples in the <code>values</code> property (but I had to use an inline definition).</p>
  
  <pre><code>#%RAML 1.0 DataType
  type: object
  properties:
    field: string
    name: string
    type: { enum: [ discreet ] }
  
    # Ideally this property would use an include
    # in some way to express the equivalent of SimpleDuple[]
    values: 
      type: array
      properties:
        id: string
        name: string
  </code></pre>
  
  <p>If those two types where on the same file I'd set the <code>values</code> property to  <code>SimpleDuple[]</code>. If it wasn't an array I'd put the include as the value of the <code>values</code> property. </p>
  
  <p>But how do I use an include and an array at the same time instead of using the inline definition I used in the copied code?</p>