-
Notifications
You must be signed in to change notification settings - Fork 5
/
processing-message.schema.yml
66 lines (66 loc) · 1.6 KB
/
processing-message.schema.yml
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
$schema: https://json-schema.org/draft/2020-12/schema
$id: https://ocr-d.de/spec/web-api/processing-message.schema.yml
description: Schema for Processing Messages
type: object
additionalProperties: false
required:
- job_id
- processor_name
- created_time
- input_file_grps
oneOf:
- required:
- path_to_mets
- required:
- workspace_id
properties:
job_id:
description: The ID of the job
type: string
format: uuid
processor_name:
description: Name of the processor
type: string
pattern: "^ocrd-.*$"
examples:
- ocrd-cis-ocropy-binarize
- ocrd-olena-binarize
path_to_mets:
description: Path to a METS file
type: string
workspace_id:
description: ID of a workspace
type: string
input_file_grps:
description: A list of file groups for input
type: array
minItems: 1
items:
type: string
output_file_grps:
description: A list of file groups for output
type: array
minItems: 1
items:
type: string
page_id:
description: ID of pages to be processed
type: string
examples:
- PHYS_0001,PHYS_0002,PHYS_0003
- PHYS_0001..PHYS_0005,PHYS_0007,PHYS_0009
parameters:
description: Parameters for the used model
type: object
result_queue_name:
description: Name of the queue to which result is published
type: string
callback_url:
description: The URL where the result message will be POST-ed to
type: string
format: uri,
pattern: "^https?://"
created_time:
description: The Unix timestamp when the message was created
type: integer
minimum: 0