package org.jsonstructure.jackson.validator.format;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import com.fasterxml.jackson.databind.JsonNode;

import org.jsonstructure.jackson.validator.Format;

public class DateTimeFormat implements Format {

    @Override
    public boolean accept(@Nonnull String type) {
        return "string".equals(type);
    }

    @Override
    @Nullable
    public String apply(@Nonnull JsonNode value, @Nonnull String type) {
        if (!value.isTextual()) {
            return null;
        }
        return null;
    }
}

@@ -46,16 +46,140 @@
 ormat;%0A%0A
+import java.time.ZonedDateTime;%0Aimport java.time.format.DateTimeFormatter;%0Aimport java.time.format.DateTimeParseException;%0A%0A
 import j
@@ -667,16 +667,348 @@
       %7D%0A
+        try %7B%0A            String str = value.textValue();%0A            str = str.replace(%22-00:00%22, %22+00:00%22);%0A            ZonedDateTime.parse(str, DateTimeFormatter.ISO_OFFSET_DATE_TIME);%0A        %7D catch (DateTimeParseException ex) %7B%0A            return %22value is not a valid rfc 3339 date-time format: %22 + ex.getMessage();%0A        %7D%0A
         

Add date-time format parsing.