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 schema: be less restrictive on input/ouptut_filegrp #168

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
18 changes: 11 additions & 7 deletions ocrd_tool.schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ properties:
- steps
- executable
- categories
- input_file_grp
# Not required because not all processors take input from a file group
# - input_file_grp
# Not required because not all processors produce output files
# - output_file_grp
properties:
Expand All @@ -39,15 +40,18 @@ properties:
input_file_grp:
description: Input fileGrp@USE this tool expects by default
kba marked this conversation as resolved.
Show resolved Hide resolved
type: array
items:
type: string
pattern: '^OCR-D-[A-Z0-9-]+$'
default: ['PLACEHOLDER']
# Naming convention is obsolete
#items:
# type: string
kba marked this conversation as resolved.
Show resolved Hide resolved
# pattern: '^OCR-D-[A-Z0-9-]+$'
output_file_grp:
description: Output fileGrp@USE this tool produces by default
kba marked this conversation as resolved.
Show resolved Hide resolved
type: array
items:
type: string
pattern: '^OCR-D-[A-Z0-9-]+$'
# Naming convention is obsolete
#items:
# type: string
# pattern: '^OCR-D-[A-Z0-9-]+$'
kba marked this conversation as resolved.
Show resolved Hide resolved
parameters:
description: Object describing the parameters of a tool. Keys are parameter names, values sub-schemas.
type: object
Expand Down