Hem*_*ari 1 loopback node.js swagger swagger-ui loopbackjs
在环回的swagger规范中指定日期和时间的数据类型时,我遇到警告/错误。下面是我的环回user.json
文件
"properties": {
"schedule": {
"type": "dateTime",
"required": true
},
}
Run Code Online (Sandbox Code Playgroud)
Swagger:跳过未知类型“dateTime”
请问我可以知道swagger中日期和时间的相关数据类型是什么吗?
指定类型为string
,格式为date-time
:
"properties": { "schedule": { "type": "string", "format": "date-time", "required": true }, }
[ https://swagger.io/specification/#dataTypes ]
归档时间: |
|
查看次数: |
1473 次 |
最近记录: |