在swagger文件对象中,声明日期的正确方式是什么?我认为应该是:
但是我看到很多类似这样的声明:
startDate:
type: string
description: Start date
example: "2017-01-01"
format: date
但是我看到很多类似这样的声明:
startDate:
type: string
description: Start date
example: "2017-01-01"
format: date
pattern: "YYYY-MM-DD"
minLength: 0
maxLength: 10