我是 json 新手,我想编写一个 json 模式,它接受 ISO8061 标准中的时间戳数组,并确保时间在 unix 纪元之后,即1970 年 1 月 1 日 00:00:00
json-schema 中的日期时间确保时间是 ISO8061 标准,但我无法添加时间应该在 unix 纪元之后的约束,即1970 年 1 月 1 日 00:00:00
我的 json shema:
{ "$schema": "http://json-schema.org/draft-04/schema#",
"type" : "array", // array of time stamps
"items" : {
"type": "string",
"format": "date-time"
}
}
json数据
["1954-12-11T00:00:00Z"]
您能否让我们知道我们是否可以限制在模式级别提交的时间,即提供的日期时间应该在 unix 纪元之后,即1970 年 1 月 1 日 00:00:00