alterschema
Version:
Convert between schema specifications
46 lines (45 loc) • 1.02 kB
JSON
[
{
"name": "draft3 type:any",
"schema": {
"$schema": "http://json-schema.org/draft-03/schema#",
"type": "any"
},
"expected": {
"$schema": "http://json-schema.org/draft-06/schema#"
}
},
{
"name": "draft3 type:[any]",
"schema": {
"$schema": "http://json-schema.org/draft-03/schema#",
"type": [ "any" ]
},
"expected": {
"$schema": "http://json-schema.org/draft-06/schema#"
}
},
{
"name": "draft3 type including any",
"schema": {
"$schema": "http://json-schema.org/draft-03/schema#",
"type": [ "string", "any" ]
},
"expected": {
"$schema": "http://json-schema.org/draft-06/schema#"
}
},
{
"name": "draft3 divisibleBy",
"schema": {
"$schema": "http://json-schema.org/draft-03/schema#",
"type": "integer",
"divisibleBy": 5
},
"expected": {
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "integer",
"multipleOf": 5
}
}
]