Skip to content

datetime requires Zulu notation #2699

@WilliamDEdwards

Description

@WilliamDEdwards

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:

Version: 5.14.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions