1
如何以下MSON輸出與「格式」的模式:「日期 - 時間」,類似下面的陳述?MSON指定日期,時間
MSON:
FORMAT: 1A
# Some API
## series [/api/v1/series]
Returns a list of series.
### View all series [GET]
+ Response 200 (application/json; charset=utf-8)
+ Attributes
+ CreatedAt (required, string)
獲得JSON模式:
{
"type": "object",
"properties": {
"CreatedAt": {
"type": "string"
}
},
"required": [
"CreatedAt"
],
"$schema": "http://json-schema.org/draft-04/schema#"
}
需要的模式(請注意 「格式」 字段):
{
"type": "object",
"properties": {
"CreatedAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"CreatedAt"
],
"$schema": "http://json-schema.org/draft-04/schema#"
}