-
Notifications
You must be signed in to change notification settings - Fork 383
Open
Description
Property:
expires_at:
type: string
format: date-time
title: Expires At
--
Input:
2021-02-18T12:02:16.49
Error:
Request body property expires_timestamp must match format "date-time"
--
Input:
2021-02-18T12:02:16.49Z
Notice the trailing Z.
Works fine.
--
Why is the Zulu notation required?
According to the tests, the first version should work too:
it.each(['yesterday', '', '2021-02-18T12:02:16.49Z', '2021-02-18T12:02:16.49'])( prism/packages/http/src/validator/__tests__/__snapshots__/functional.spec.ts.snap
Line 18 in e12e766
exports[`HttpValidator validateInput() all validations are turned on properly validate date-time format ("2021-02-18T12:02:16.49") 1`] = `
Version: 5.14.2
Metadata
Metadata
Assignees
Labels
No labels