Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

string date-time format #24

Open
andrebiegel opened this issue Feb 9, 2023 · 1 comment
Open

string date-time format #24

andrebiegel opened this issue Feb 9, 2023 · 1 comment

Comments

@andrebiegel
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant