在Amazon Api Gateway中,我创建的模型如下:
{
"start": {
"type": "string",
"format": "date-time"
},
"end": {
"type": "string",
"format": "date-time"
}
}
返回
{
"start": "2015-10-12 10:30:00",
"end": "2015-10-13 10:30:00"
}
,但这是抛出错误在Android SDK如下:
java.text.ParseException: Failed to parse date "2015-10-12 10:30:00"
根据json模式文档,日期-时间格式采用日期表示,如RFC 3339第5.6节
示例如下:
1996 - 12 - 19 - t16:39:57喂饲