目前我正在尝试使用以下格式修复以下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.
答案 0 :(得分:0)
在-
和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`