jsonbinpack
Version:
A space-efficient schema-driven binary JSON serialization format based on JSON Schema
66 lines (65 loc) • 1.28 kB
JSON
{
"type": "object",
"additionalProperties": false,
"required": [
"rules"
],
"properties": {
"rules": {
"type": "object",
"additionalProperties": false,
"required": [
"scope-case",
"subject-case"
],
"properties": {
"scope-case": {
"type": "array",
"maxItems": 3,
"minItems": 3,
"prefixItems": [
{
"type": "integer",
"minimum": 0
},
{
"enum": [
"always",
"never"
]
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"subject-case": {
"type": "array",
"maxItems": 3,
"minItems": 3,
"prefixItems": [
{
"type": "integer",
"minimum": 0
},
{
"enum": [
"always",
"never"
]
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
}
}
}
}
}