阅读背景:

节点json-schema阻止整数的null

来源:互联网 

I have schema,

我有架构,

'demand': {
    description: 'demand model',
    type: 'object',
    additionalProperties: false,
    properties: {
        '_id': {
            type: 'string'
        },
        'driversNeeded': {
            required: true,
            type: 'integer',
            minumum: 0
        },
        'date': {
            required: true,
            type: 'string',
            pattern: /^\d{4}-\d{2}-\d{2}$/
        }
    }
}
'demand': {
    descri



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: