【问题标题】:How to format default dates for apiary blueprint?如何格式化养蜂场蓝图的默认日期?
【发布时间】:2015-09-24 17:31:46
【问题描述】:

目前我正在尝试使用以下格式修复以下 2 个警告。

+ start: `2015-05-05T12:30:00` - (optional, datetime) The start datetime (ISO8601 format) 
    + Default: `0001-01-01-T12:00:00+00:00`
+ end: `2015-05-06T15:20:12` - (optional, datetime) The end datetime (ISO8601 format)
    + Default: `Utc Now`

我的警告是:

Specifying parameter 'start' as required supersedes its default value, declare the parameter as 'optional' to specify its default value.

Specifying parameter 'end' as required supersedes its default value, declare the parameter as 'optional' to specify its default value.

【问题讨论】:

    标签: apiary.io apiary


    【解决方案1】:

    发现-datetime 后面指定的类型不是有效类型的2 个错误。

    正确的格式

    + start: `2015-05-05T12:30:00` (optional, string) - The start datetime (ISO8601 format) 
        + Default: `0001-01-01-T12:00:00+00:00`
    + end: `2015-05-06T15:20:12` (optional, datetime) - The end datetime (ISO8601 format)
        + Default: `Utc Now`
    

    【讨论】:

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