Skip to content

Invalid date-time fails validation #478

Closed
@tomsfernandez

Description

@tomsfernandez

When using a date-time with a day that exceeds the max amount of days in a month like February 30th the validator doesn't fail.

I added this test to test/vanilla/src/main/resources/org/everit/json/schema/draft7/date-time.json

{
  "description": "only RFC3339 invalid date-time according to calendar rules",
  "data": "1963-02-30T00:00:00Z",
  "valid": false
}

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