compare field values

30 views
Skip to first unread message

Sergey Polzunov

unread,
May 13, 2015, 7:06:52 AM5/13/15
to json-...@googlegroups.com
Hello

Is it possible to do checks on multiple field values? For example, I have 2 fields:

"begin_timestamp": {
    "type": "string",
    "format": "date-time"
},
"end_timestamp": {
    "type": "string",
    "format": "date-time"
}

and I want to enforce that end_timestamp >= begin_timestamp

Thanks,
Sergey 

Jason Desrosiers

unread,
May 16, 2015, 8:29:21 PM5/16/15
to json-...@googlegroups.com, polz...@gmail.com
No, JSON Schema can't to this.
Reply all
Reply to author
Forward
0 new messages