2016-08-24 56 views

回答

3

根據文檔,如果將參數定義爲數組,則該請求可以具有多個具有相同名稱的參數。如需更詳細的解釋檢查RAML specification on the subject.

例如:

types: 
    Param: 
    type: object 
    properties: 
     name: 
     type: string 
    Params: 
    type: array 
    items: Param 
    minItems: 2 
    maxItems:2 
    uniqueItems: true 
相關問題