api - 对象的蓝图数组(养蜂场)

标签 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
        }
   ]
}

是bug还是我弄错了?

最佳答案

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

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

关于api - 对象的蓝图数组(养蜂场),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33475466/

相关文章:

html - 如何将 hive 蓝图导出为 PDF、独立 HTML 或类似的 "deliverable"?

java - 如何允许多个用户访问 facebook api

apiblueprint - 在 Apiary.io 上的 API 蓝图中使用通用命名类型

azure - 具有对象 ID 的客户端无权在范围内执行操作 'Microsoft.Web/serverfarms/read'

java - OSGi/blueprint 中的服务引用无法正常工作

java - Maven bundle 插件生成带有错误或缺失版本的 list

apiblueprint - 使用 Rails 数组表示法的查询字符串参数的 API Bluprint 文档

javascript - 使用 openstreetmap api 转换城市坐标

delphi - 博主通过 idHTTP : error 400 bad request