date-time validation check using regex#413
Conversation
gregsdennis
left a comment
There was a problem hiding this comment.
It looks like (line 19) that I only supply formats up to 7-digit precision. Have you tried adding the additional digits here instead of regex?
Also can you add a unit test to cover this case, please?
|
I did try that, unfortunately adding more does nothing. Thanks for getting back to me so quick! |
Please add to |
|
Thanks. I'm going to merge this into #418 just to combine releases. |
DateTimes that have very high precision eg: 2023-03-20T05:41:23.802351665Z can be parsed by dotnet and are allowed by jsonschema but don't get accepted by TryParseExact
This uses regex as a fallback to check a datetime just incase it's actually compliant event though TryParseExact disagrees.