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.
Currently, only 4
type
s are allowed in our schema for ocrd-tool.json parameter definitions: https://github.com/OCR-D/spec/blob/e11ead39099fe9f5a8f5f5cf491e2edfa42fc81d/ocrd_tool.schema.yml#L63-L70This 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 useobject
. But the former would make parameter lists much longer and less readable and usable, whereas the latter allows even fewer type checking.