未知
json_hyper_schema的Python项目详细描述
……图片::https://drone.io/bitbucket.org/eodolphi/json-hyper-schema/status.png
:目标:https://drone.io/bitbucket.org/eodolphi/json-hyper-schema/latest
=03
http://tools.ietf.org/html/draft-zyp-json-schema-03
form json_hyper_schema import schema
>;>;schema=schema(
{
‘properties’:{
‘a’:{‘type’:‘string’,‘enum’:[‘a’,‘b’]},
‘b’:{
‘type’:‘array’,
‘项目’:{
‘属性’:{
‘b’:{‘类型’:‘字符串’,‘枚举’:[‘c’,‘d’]},
‘c’:{‘uuid’:true}
}
}
}
},
‘c’:{‘默认值’:‘blabla’}
},
'链接':[
{
'ref':'/id/{a}',
'rel':'self'
}
}
>;架构。验证({'a':'b','b':[{'b':'c'},{'b':'d'})
这将包含一个错误字典。字典的键是指向无效字段的“json\u pointer.pointer”指针
:目标:https://drone.io/bitbucket.org/eodolphi/json-hyper-schema/latest
http://tools.ietf.org/html/draft-zyp-json-schema-03
form json_hyper_schema import schema
>;>;schema=schema(
{
‘properties’:{
‘a’:{‘type’:‘string’,‘enum’:[‘a’,‘b’]},
‘b’:{
‘type’:‘array’,
‘项目’:{
‘属性’:{
‘b’:{‘类型’:‘字符串’,‘枚举’:[‘c’,‘d’]},
‘c’:{‘uuid’:true}
}
}
}
},
‘c’:{‘默认值’:‘blabla’}
},
'链接':[
{
'ref':'/id/{a}',
'rel':'self'
}
}
>;架构。验证({'a':'b','b':[{'b':'c'},{'b':'d'})
这将包含一个错误字典。字典的键是指向无效字段的“json\u pointer.pointer”指针