【问题标题】:Blueprint array of objects (apiary)蓝图对象数组(养蜂场)
【发布时间】:2015-11-02 10:28:11
【问题描述】:

我正在尝试使用基于 this answer 的语法来描述对象数组

+ Response 200 (application/json)
    + Attributes
        + time (object, required)
            + default (string, required) - `HH:MM` default time
            + times (array, required) - Array of times for date
                + time (object)
                    + value: 12:00 (string, required) - `HH:MM` time value
                    + occupied: true (boolean, required)

但是养蜂场呈现的是

{
   "time": {
   "default": null,
   "times": [
        {
         "undefined": null
        }
   ]
}

是错误还是我弄错了?

【问题讨论】:

    标签: api blueprint apiary.io apiary


    【解决方案1】:

    MSON 支持仍处于测试阶段,将能够在未来几周内处理这些案例。

    您可以通过这种方式安全地描述您的结构,并且文档很快就会赶上。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多