(date: string)
| 60 | * @param date - The date to verify |
| 61 | */ |
| 62 | export function matchDateFormat(date: string) { |
| 63 | const pattern = new RegExp(REGEX_RFC3339_DATE); |
| 64 | const result = pattern.test(date); |
| 65 | debug('matchDateFormat(%j) -> %s', date, result); |
| 66 | return result; |
| 67 | } |
| 68 | |
| 69 | /** |
| 70 | * Return the corresponding OpenAPI data type given an OpenAPI schema |