Skip to content

Add @JsonFormat.lenient to allow configuring lenience of date/time deserializers #105

@chrisbloe

Description

@chrisbloe

When I specify a date in the form:
@JsonFormat(pattern = "yyyy-MM-dd") Date endDate;
I would like to set the leniency to false.

Currently, a value of 2016-225-35 is allowed, but I would like to make this invalid.

e.g.
@JsonFormat(pattern = "yyyy-MM-dd", lenient = false) Date endDate;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions