首先,这个问题类似于,但不同于How to define an array of a type in an external file in Raml?,除了我想创建一个DataType (A),它的属性是另外两个DataTypes B和C的并集。例如,下面是B RAML: #%RAML 1.0 DataTypeproperties:
some: integer 这是C RAML: #%RAML 1.0 DataTypetype: ob
我正在使用RAML建模REST。端点的响应体(JSON格式)是一个金融事务列表。每个交易都包含一定数量的货币:货币和数字值。下面是我的RAML file的片段,请注意Transaction类型中的属性amount: title: Trading details API 200: application/json:
type: Trans