【发布时间】:2016-12-22 03:01:07
【问题描述】:
我无法在任何地方找到使用!include 演示多个示例的任何代码。我正在尝试以下操作:
200:
description: Successful project creation
body:
application/json:
type: JiraResponseSuccess
example: !include examples/jira/projects/success/CreateSuccess.json
400:
description: User error
body:
application/json:
type: JiraResponseError
examples:
username:
!include examples/jira/projects/fail/user/UsernameFail.json
projectKey:
!include examples/jira/projects/fail/user/ProjectKeyFail.json
第一个示例呈现良好(只有一个响应),而第二个则没有。 syntax 是正确的,但我不明白为什么它会在 !include 语句中窒息。我有错误还是只需要等待工具赶上?
【问题讨论】:
-
看起来多重响应还没有实现:github.com/raml-org/raml-spec/issues/24