Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/cwltool/schemas/v1.2.0-dev3/salad/schema_salad/metaschema/sfdsl_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 secondary files | |
3 | |
4 Fields may be tagged `secondaryFilesDSL: true` in `jsonldPredicate`. If so, the field is expanded using the | |
5 following micro-DSL for secondary files: | |
6 | |
7 * If the value is a string, it is transformed to an object with two fields `pattern` and `required` | |
8 * By default, the value of `required` is `null` (this indicates default behavior, which may be based on the context) | |
9 * If the value ends with a question mark `?` the question mark is | |
10 stripped off and the value of the field `required` is set to `False` | |
11 * The remaining value is assigned to the field `pattern` | |
12 | |
13 ### Secondary files DSL example | |
14 | |
15 Given the following schema: | |
16 | |
17 ``` | |
18 - $include: sfdsl_res_schema.yml | |
19 - | | |
20 ``` | |
21 | |
22 Process the following example: | |
23 | |
24 ``` | |
25 - $include: sfdsl_res_src.yml | |
26 - | | |
27 ``` | |
28 | |
29 This becomes: | |
30 | |
31 ``` | |
32 - $include: sfdsl_res_proc.yml | |
33 - | | |
34 ``` |