Skip to content

Date-time with missing timezone minutes offset is considered valid in v3.0.1 #104

@rishikeshjoshi

Description

@rishikeshjoshi

I have a JSON schema as below

"testDate": {
  "type": "string",
  "format": "date-time"
}

The below date which has a missing minute offset which is considered valid

"testDate":  "2023-12-11T23:03:23.568+09"

I am using the below dependencies:

package.json:

"ajv": "^8.17.1",
"ajv-formats": "^3.0.1"

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