【问题标题】:How to pass URI parameters in Dredd如何在 Dredd 中传递 URI 参数
【发布时间】:2016-12-13 19:44:40
【问题描述】:

我是 Dredd 的新手,想运行找到 here 的 uber.yaml。但是,我一直遇到以下错误:

info: Configuration './dredd.yml' found, ignoring other arguments.
error: Compilation error in file 'uber.yaml': Required URI parameter 'latitude' 
has no example or default value. (Products > /v1/products > Product Types)

不确定如何通过这些,无法使用 Dredd 文档找到我正在寻找的内容。任何帮助将不胜感激!

【问题讨论】:

    标签: dredd


    【解决方案1】:

    没关系,能够找到答案必须在 swagger.yaml 中添加 x-example。

    【讨论】:

      猜你喜欢
      • 2016-11-22
      • 2012-03-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-20
      • 1970-01-01
      • 1970-01-01
      • 2018-04-19
      相关资源
      最近更新 更多