Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocrd-tool: require content-type=text/directory for directory parameters #189

Merged
merged 4 commits into from
Jan 30, 2022
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion ocrd_tool.schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,15 @@ properties:
description: List the allowed values if a fixed list.
content-type:
type: string
description: "If parameter is reference to file: Media type of the file"
default: 'application/octet-stream'
description: >
The media type of resources this processor expects for
this parameter. Most processors use files for resources
(e.g. `*.traineddata` for `ocrd-tesserocr-recognize`)
while others use directories of files (e.g. `default` for
`ocrd-eynollah-segment`). If a processor requires
kba marked this conversation as resolved.
Show resolved Hide resolved
directories, it must set `resource-content-type` to
kba marked this conversation as resolved.
Show resolved Hide resolved
`text/directory`.
cacheable:
type: boolean
description: "If parameter is reference to file: Whether the file should be cached, e.g. because it is large and won't change."
Expand Down