comparison env/lib/python3.9/site-packages/cwltool/schemas/v1.2.0-dev3/salad/schema_salad/metaschema/typedsl_res.yml @ 0:4f3585e2f14b draft default tip

"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author shellac
date Mon, 22 Mar 2021 18:12:50 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4f3585e2f14b
1 - |
2 ## Domain Specific Language for types
3
4 Fields may be tagged `typeDSL: true` in `jsonldPredicate`. If so, the field is expanded using the
5 following micro-DSL for schema salad types:
6
7 * If the type ends with a question mark `?`, the question mark is stripped off and the type is expanded to a union with `null`
8 * If the type ends with square brackets `[]` it is expanded to an array with items of the preceeding type symbol
9 * The type may end with both `[]?` to indicate it is an optional array.
10 * Identifier resolution is applied after type DSL expansion.
11
12 ### Type DSL example
13
14 Given the following schema:
15
16 ```
17 - $include: typedsl_res_schema.yml
18 - |
19 ```
20
21 Process the following example:
22
23 ```
24 - $include: typedsl_res_src.yml
25 - |
26 ```
27
28 This becomes:
29
30 ```
31 - $include: typedsl_res_proc.yml
32 - |
33 ```