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

date-time differences w.r.t. spec and JSON schema #1962

Open
danielpeintner opened this issue Jan 24, 2024 · 0 comments
Open

date-time differences w.r.t. spec and JSON schema #1962

danielpeintner opened this issue Jan 24, 2024 · 0 comments
Labels
Needs discussion more discussion is needed before getting to a solution Semantics Semantics-related issues validation Topic related to Normative Parsing, Validation, Consumption

Comments

@danielpeintner
Copy link
Contributor

In our document we use date-time for example for created and modified
see https://w3c.github.io/wot-thing-description/#thing

In the TD spec we point to https://www.w3.org/TR/2012/REC-xmlschema11-2-20120405/#dateTime which in the end is consistent with ISO 8601.

On the other hand in our JSON schema we use RFC3339 date-time

"created": {
"type": "string",
"format": "date-time"
},
"modified": {
"type": "string",
"format": "date-time"
},

There are examples that work for both, e.g, 2020-12-09T16:09:53+00:00 but there are variants that are not valid for both (e.g., without T between date and time).
see https://stackoverflow.com/a/65221179

@github-actions github-actions bot added the needs-triage Automatically added to new issues. TF should triage them with proper labels label Jan 24, 2024
@egekorkan egekorkan added Needs discussion more discussion is needed before getting to a solution Semantics Semantics-related issues validation Topic related to Normative Parsing, Validation, Consumption and removed needs-triage Automatically added to new issues. TF should triage them with proper labels labels Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs discussion more discussion is needed before getting to a solution Semantics Semantics-related issues validation Topic related to Normative Parsing, Validation, Consumption
Projects
None yet
Development

No branches or pull requests

2 participants