jimblackler / jsonschemafriend

A JSON Schema loader and validator, delivered as a Java library.
Apache License 2.0
52 stars 23 forks source link

string date-time format #24

Open andrebiegel opened 1 year ago

andrebiegel commented 1 year ago

Hi , i tried tried the following .. in your online version

SChema:

"$schema": "https://json-schema.org/draft/2020-12/schema",

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

Json: "Erstellt": "2004-06-14T23:34:30.322",

So here the timezone is missing in the json https://json-schema.org/understanding-json-schema/reference/string.html says in the sample that there has to be a timezone

https://github.com/networknt/json-schema-validator this lib marks that as invalid .. your online version says that it is valid .. sry im not that deeply in the spec . but ... is there a bug in your implementation or is the spec not that precise? Greets André

andrebiegel commented 1 year ago

another Finding ... the online version also states this as valid: "Erstellt": "2004-06-35T23:34:30.322+00:00", but there is no month with 35 days