Closed 0xNekr closed 6 months ago
When a model uses the Date type and not Datetime, auto-swagger doesn't recognize this type and therefore doesn't propose the example value correctly (and the // @example doesn't work).
Date
Datetime
// @example
However, Date format support seems to have been added here: https://github.com/ad-on-is/adonis-autoswagger/pull/38
I therefore propose simply adding the Date format to lists of standard type.
I've tested this and it seems to work on my side, so I'm going to link a pull request to this issue.
Don't hesitate to ask if I've left anything out.
Issue related to https://github.com/ad-on-is/adonis-autoswagger/pull/58
Hey.. Thx for this one.. It's merged and published to 2.16
When a model uses the
Date
type and notDatetime
, auto-swagger doesn't recognize this type and therefore doesn't propose the example value correctly (and the// @example
doesn't work).However, Date format support seems to have been added here: https://github.com/ad-on-is/adonis-autoswagger/pull/38
I therefore propose simply adding the
Date
format to lists of standard type.I've tested this and it seems to work on my side, so I'm going to link a pull request to this issue.
Don't hesitate to ask if I've left anything out.