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

make timezone optional #83

Closed
wants to merge 1 commit into from
Closed

make timezone optional #83

wants to merge 1 commit into from

Conversation

mmoskal
Copy link
Collaborator

@mmoskal mmoskal commented Dec 8, 2024

ChatGPT told me: In JSON Schema, the date-time format does not explicitly require a timezone, but it is recommended. According to the RFC 3339 standard, which JSON Schema date-time format adheres to, a timezone can be either specified (e.g., Z for UTC or a specific offset like +02:00) or omitted.

both python jsonschema and https://www.jsonschemavalidator.net/ let one omit it but Rust jsonschema requires it

@hudson-ai any opinion?

@mmoskal mmoskal requested a review from hudson-ai December 8, 2024 01:40
@mmoskal
Copy link
Collaborator Author

mmoskal commented Dec 8, 2024

OK, never mind. Just checked the RFC. Our incoming AI overlord is wrong, so is Python and that website. @hudson-ai and Rust library are right.

@mmoskal mmoskal closed this Dec 8, 2024
@mmoskal mmoskal deleted the optional_timezone branch December 9, 2024 17:52
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

Successfully merging this pull request may close these issues.

1 participant