jsonbinpack
Version:
A space-efficient schema-driven binary JSON serialization format based on JSON Schema
42 lines (41 loc) • 906 B
JSON
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"additionalProperties": false,
"required": [ "foo", "main", "options" ],
"properties": {
"foo": {
"type": "array",
"items": {
"type": "string"
}
},
"main": {
"type": "object",
"additionalProperties": false,
"required": [ "files", "src" ],
"properties": {
"files": {
"type": "object",
"required": [],
"additionalProperties": false
},
"src": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"options": {
"type": "object",
"additionalProperties": false,
"required": [ "force", "no-write" ],
"properties": {
"force": { "type": "boolean" },
"no-write": { "type": "boolean" }
}
}
}
}