-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmetabib-archive-manifest.schema.json
More file actions
77 lines (77 loc) · 2.53 KB
/
Copy pathmetabib-archive-manifest.schema.json
File metadata and controls
77 lines (77 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/rupor-github/metabib/docs/metabib-archive-manifest.schema.json",
"title": "metabib archive cache manifest JSONL",
"oneOf": [
{"$ref": "#/$defs/header"},
{"$ref": "metabib.schema.json"}
],
"$defs": {
"header": {
"type": "object",
"required": ["schema", "source", "processing", "created", "records"],
"allOf": [
{
"if": {"properties": {"schema": {"const": "metabib.archive_manifest/2"}}, "required": ["schema"]},
"then": {"required": ["scope"]}
}
],
"properties": {
"schema": {"enum": ["metabib.archive_manifest/1", "metabib.archive_manifest/2"]},
"scope": {"enum": ["fb2", "usr"]},
"source": {
"type": "object",
"required": ["path", "modified", "md5"],
"properties": {
"path": {"type": "string"},
"modified": {"type": "string"},
"md5": {"type": "string"}
},
"additionalProperties": false
},
"processing": {"$ref": "#/$defs/processing"},
"features": {"$ref": "#/$defs/features"},
"created": {"type": "string"},
"records": {"type": "integer", "minimum": 0}
},
"additionalProperties": false
},
"processing": {
"type": "object",
"required": ["parse_fb2", "fb2_description_tree", "fb2_body_fingerprints", "archive_content_md5"],
"properties": {
"parse_fb2": {"type": "boolean"},
"fb2_description_tree": {"type": "boolean"},
"fb2_body_fingerprints": {"type": "boolean"},
"archive_content_md5": {"type": "boolean"},
"nested_archive_inspection": {"$ref": "#/$defs/nested_archive_inspection"}
},
"additionalProperties": false
},
"nested_archive_inspection": {
"type": "object",
"required": ["enabled", "max_compressed_size_mib"],
"properties": {
"enabled": {"type": "boolean"},
"max_compressed_size_mib": {"type": "integer", "minimum": 0}
},
"additionalProperties": false
},
"features": {
"type": "object",
"properties": {
"fb2_body_fingerprints": {"$ref": "#/$defs/fingerprint_feature"}
},
"additionalProperties": false
},
"fingerprint_feature": {
"type": "object",
"required": ["model", "section_encoding"],
"properties": {
"model": {"type": "string"},
"section_encoding": {"type": "string"}
},
"additionalProperties": false
}
}
}