incoroporate changes to ocrd_tool schema from spec/v2.2.1
@@ -36,6 +36,31 @@ properties:
parameters:
description: Object describing the parameters of a tool. Keys are parameter names, values sub-schemas.
type: object
+ patternProperties:
+ ".*":
+ type: object
+ additionalProperties: false
+ required:
+ - type
+ # also either 'default' or 'required'
+ properties:
+ type:
+ type: string
+ description: Data type of this parameter
+ enum:
+ - string
+ - number
+ - boolean
+ format:
+ description: Subtype, such as `float` for type `number` or `uri` for type `string`.
+ required:
+ type: boolean
+ description: Whether this parameter is required
+ default:
+ description: Default value when not provided by the user
+ enum:
+ type: array
+ description: List the allowed values if a fixed list.
description:
description: Concise description what the tool does
categories:
