Array of Array in RAML

Any idea how we can define something like the below in RAML 1.0?

{
“serviceOffers”: [
[
{
“userName”: “test.aluminium”,
“station”: “DXB”,
“role”: “ADMIN”
}
]
]
}

#%RAML 1.0 DataType

properties:
  serviceOffers:
    items: 
      items:
        properties:
          userName:
          station:
          role:

Hm I might be wrong, but if I remember correctly you need to add type:array to make it correct RAML 1.0 fragment.

properties:
  serviceOffers:
    type: array
    items: 
      type: array      
      items:
        properties:
          userName:
          station:
          role:

Also, I would advice to use libraries instead of fragments in this case it will be something like:

#%RAML 1.0 Library
types:
   User:
     type: object
      properties:
          userName: string
          station: string
          role: string
  OfferHolder:
     type: object
     properties:
          serviceOffers: User[][]

Regards,
Pavel

Thanks for your comment and suggestions @petrochenko_pav.

I can confirm that don’t need to write type: <type> when the type is implicit (E.g. when properties and items are defined). This was the initial intention in RAML 1.0 but it was not very clearly captured. This is why we will add a clarification in RAML 1.0.1. See #710. Note that this is the current behavior of webapi-parser (the new official parser based on AMF).