48 lines
1.0 KiB
JSON
48 lines
1.0 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "command-patch-set.schema.json",
|
|
"title": "CommandPatchSet",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"schema_version",
|
|
"source_sha256",
|
|
"patches"
|
|
],
|
|
"properties": {
|
|
"schema_version": {
|
|
"const": "1.0"
|
|
},
|
|
"source_sha256": {
|
|
"type": "string",
|
|
"pattern": "^[0-9a-f]{64}$"
|
|
},
|
|
"patches": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"block_id",
|
|
"expected_sha256",
|
|
"replacement_markdown"
|
|
],
|
|
"properties": {
|
|
"block_id": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"expected_sha256": {
|
|
"type": "string",
|
|
"pattern": "^[0-9a-f]{64}$"
|
|
},
|
|
"replacement_markdown": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|