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 all 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
18 changes: 12 additions & 6 deletions ocrd_tool.schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,31 @@ 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:
executable:
description: The name of the CLI executable in $PATH
type: string
input_file_grp:
description: Input fileGrp@USE this tool expects by default
description: Input fileGrp@USE examples for this tool
type: array
items:
type: string
pattern: '^OCR-D-[A-Z0-9-]+$'
type: string
# Naming convention is obsolete
# pattern: '^OCR-D-[A-Z0-9-]+$'
default: ['INPUT']
# pattern: '^OCR-D-[A-Z0-9-]+$'
output_file_grp:
description: Output fileGrp@USE this tool produces by default
description: Output fileGrp@USE examples for this tool
type: array
items:
type: string
pattern: '^OCR-D-[A-Z0-9-]+$'
# Naming convention is obsolete
# pattern: '^OCR-D-[A-Z0-9-]+$'
default: ['OUTPUT']
parameters:
description: Object describing the parameters of a tool. Keys are parameter names, values sub-schemas.
type: object
Expand Down