【发布时间】:2014-11-13 10:07:12
【问题描述】:
我有一个这样的 json 架构:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Operation",
"description": "The schema of an operation",
"type": "object",
"properties": {
"id":{
"description": "Unique identifier of the service",
"type": "string"
},
"description":{
"type": "string"
},
"dateDebut":{
"type": "string",
"format": "date-time"
},
"dateFin":{
"type": "string",
"format": "date-time"
}
}
}
如何在我的架构中说 dateFin 必须大于 dateDebut ?
【问题讨论】:
标签: node.js jsonschema json-schema-validator