64 lines
1.1 KiB
JSON
64 lines
1.1 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format",
|
|
"format_version",
|
|
"table",
|
|
"columns",
|
|
"rows",
|
|
"coverage"
|
|
],
|
|
"properties": {
|
|
"format": {
|
|
"const": "viano-database-snapshot"
|
|
},
|
|
"format_version": {
|
|
"const": 1
|
|
},
|
|
"table": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"pattern": "\\S"
|
|
},
|
|
"columns": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"pattern": "\\S"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"pattern": "\\S"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"rows": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
"coverage": {
|
|
"enum": [
|
|
"partial",
|
|
"complete_snapshot",
|
|
"unknown",
|
|
"schema_only"
|
|
]
|
|
}
|
|
}
|
|
}
|