Skip to content

Add multiple optional format validators like java.time.format.DataTimeFormatterBuilder #518

Open
@jacob2221

Description

@jacob2221

Hi,

I have a field in JSON which may either just have a DATE in yyyy-MM-dd format or DATETIME in yyyy-MM-dd HH:mm:ss format. Similar to java.time.format.DateTimeFormatterBuilder where we can append optional formats to a base format, is there any way to do the same in everit without defining our own custom date format validator or any other code changes?

type: "string",
format: "date",
format:"time"

Regards
Jacob

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