46 lines
1.7 KiB
JSON
46 lines
1.7 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "mindnet note payload",
|
|
"type": "object",
|
|
"properties": {
|
|
"note_id": { "type": "string" },
|
|
"title": { "type": ["string","null"] },
|
|
"type": { "type": ["string","null"] },
|
|
"status": { "type": ["string","null"] },
|
|
"created": { "type": ["string","null"] },
|
|
"updated": { "type": ["string","null"] },
|
|
"path": { "type": ["string","null"] },
|
|
"tags": { "type": ["array","null"], "items": { "type": "string" } },
|
|
"area": { "type": ["string","null"] },
|
|
"project": { "type": ["string","null"] },
|
|
"source": { "type": ["string","null"] },
|
|
"lang": { "type": ["string","null"] },
|
|
"slug": { "type": ["string","null"] },
|
|
"aliases": { "type": ["array","null"], "items": { "type": "string" } },
|
|
|
|
"fulltext": { "type": ["string","null"] },
|
|
"references": { "type": ["array","null"], "items": { "type": "string" } },
|
|
|
|
"hash_fulltext": { "type": ["string","null"], "pattern": "^[a-f0-9]{64}$" },
|
|
"hash_signature": { "type": ["string","null"] },
|
|
|
|
"hash_body": { "type": ["string","null"], "pattern": "^[a-f0-9]{64}$" },
|
|
"hash_frontmatter": { "type": ["string","null"], "pattern": "^[a-f0-9]{64}$" },
|
|
"hash_full": { "type": ["string","null"], "pattern": "^[a-f0-9]{64}$" },
|
|
|
|
"hashes": {
|
|
"type": ["object","null"],
|
|
"description": "Mapping: <mode>:<source>:<normalize> -> sha256 hex",
|
|
"patternProperties": {
|
|
"^(body|frontmatter|full):(parsed|raw):(canonical|none)$": {
|
|
"type": "string",
|
|
"pattern": "^[a-f0-9]{64}$"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": ["note_id"],
|
|
"additionalProperties": true
|
|
}
|