-
-
Notifications
You must be signed in to change notification settings - Fork 2
Fix some XML Schema date/time/duration correctness issues #102
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,9 +42,9 @@ | |
| "valid": true | ||
| }, | ||
| { | ||
| "description": "Valid - leap second", | ||
| "description": "Invalid - leap second is not an XSD dateTime", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since the timezone offset range is now constrained to ±14:00 (and minutes must be Severity: low 🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage. |
||
| "data": "2023-12-31T23:59:60Z", | ||
| "valid": true | ||
| "valid": false | ||
| }, | ||
| { | ||
| "description": "Valid - negative year", | ||
|
|
@@ -87,9 +87,9 @@ | |
| "valid": false | ||
| }, | ||
| { | ||
| "description": "Invalid - hour 24", | ||
| "description": "Valid - hour 24 as midnight", | ||
| "data": "2023-05-15T24:00:00", | ||
| "valid": false | ||
| "valid": true | ||
| }, | ||
| { | ||
| "description": "Invalid - minute 60", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,9 +47,9 @@ | |
| "valid": true | ||
| }, | ||
| { | ||
| "description": "Valid - leap second", | ||
| "description": "Invalid - leap second is not an XSD time", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The updated schema allows Severity: low 🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage. |
||
| "data": "23:59:60", | ||
| "valid": true | ||
| "valid": false | ||
| }, | ||
| { | ||
| "description": "Invalid - hour 25", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The regex here permits
24:00:00with a trailing fractional part of only zeros (e.g.24:00:00.0), but the file’s$commentsays hour 24 is only valid as24:00:00. Consider aligning the comment with the actual constraint to avoid misleading schema consumers.Severity: low
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.