Mercurial > repos > shellac > guppy_basecaller
comparison env/lib/python3.7/site-packages/schema_salad/metaschema/typedsl_res.yml @ 5:9b1c78e6ba9c draft default tip
"planemo upload commit 6c0a8142489327ece472c84e558c47da711a9142"
author | shellac |
---|---|
date | Mon, 01 Jun 2020 08:59:25 -0400 |
parents | 79f47841a781 |
children |
comparison
equal
deleted
inserted
replaced
4:79f47841a781 | 5:9b1c78e6ba9c |
---|---|
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 ``` |