OCR-D / spec

Specification of the @OCR-D technical architecture, interface definitions and data exchange format(s)
https://ocr-d.de/en/spec/
17 stars 5 forks source link

ocrd-tool schema for parameters: allow array type #174

Closed bertsky closed 3 years ago

bertsky commented 3 years ago

Currently, only 4 types are allowed in our schema for ocrd-tool.json parameter definitions: https://github.com/OCR-D/spec/blob/e11ead39099fe9f5a8f5f5cf491e2edfa42fc81d/ocrd_tool.schema.yml#L63-L70

This strikingly omits the standard array type for lists/tuples. Why should parameters not be allowed to be defined as arrays? The alternative is to enumerate them as separate parameters (if it is possible to have a pre-defined length), or use object. But the former would make parameter lists much longer and less readable and usable, whereas the latter allows even fewer type checking.