蓝图对象(养蜂场)

时间:2015-11-02 10:28:12

标签: api blueprint apiary.io apiary

我试图用基于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
        }
   ]
}

是错误还是错了?

1 个答案:

答案 0 :(得分:1)

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

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