2015-11-02 50 views
3

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

它是bug还是我得到了它错误?

回答

1

MSON支持仍处于测试阶段,并且能够在接下来的几周内处理这些情况。

你可以用这种方式安全地描述你的结构,文档很快就会迎头赶上。