JSON Schema does allow for a "date-time" string format, but it's not a very
common one (even though its an RFC standard), e.g. sample JSON Schema
definition:
{
"type": "string",
"format": "date-time"
}
See
https://spacetelescope.github.io/understanding-json-schema/reference/string.html
Alternatively, you could use JSON Schema's "pattern" keyword to define a
regular expression to validate your particular date formats. Hope that
helps.
--
Please NOTE: This electronic message, including any attachments, may
include privileged, confidential and/or inside information owned by Leaf
Group. Any distribution or use of this communication by anyone other than
the intended recipient(s) is strictly prohibited and may be unlawful. If
you are not the intended recipient, please notify the sender by replying to
this message and then delete it from your system. Thank you.
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.