Imagine I have a following json schema:
"period": {
"type": "object",
"properties": {
"start": {
"description": "Unixtime",
"type": "number",
"minimum": 0
},
"end": {
"description": "Unixtime",
"type": "number",
"minimum": 0
}
},
"required": [
"start",
"end"
]
}
Is there a way to ensure that start
time is always <= end
time with help of schema itself?