You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems date and date-time formats are both treated as date-time in the validation, but date should accept date only values like 2022-01-01.
According to OpenAPI documentation:
An optional format modifier serves as a hint at the contents and format of the string. OpenAPI defines the following built-in string formats:
date – full-date notation as defined by [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6), for example, 2017-07-21
date-time – the date-time notation as defined by [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6), for example, 2017-07-21T17:32:28Z
Culprit is in check.ts
if ((expect.format === 'date' || expect.format === 'date-time') && !validator.isRFC3339(val)) return { is: false };
Thanks
The text was updated successfully, but these errors were encountered:
Hello,
It seems
date
anddate-time
formats are both treated asdate-time
in the validation, butdate
should accept date only values like2022-01-01
.According to OpenAPI documentation:
Culprit is in
check.ts
Thanks
The text was updated successfully, but these errors were encountered: