Skip to content

Commit b1482c0

Browse files
author
Luka Stojanovic
committed
Sentence about type definition simplification
1 parent 2a35392 commit b1482c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

draft-4/concepts.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ An implementation must resolve [$import](SchemaSalad.html#Import) and
108108
[$include](SchemaSalad.html#Import) directives as described in the
109109
[Schema Salad specification](SchemaSalad.html).
110110

111+
Another transformation defined in Schema salad is simplification of data type definitions.
112+
Type `<T>` ending with `?` should be transformed to `[<T>, "null"]`.
113+
Type `<T>` ending with `[]` should be transformed to `{"type": "array", "items": <T>}`
114+
111115
## Extensions and Metadata
112116

113117
Input metadata (for example, a lab sample identifier) may be represented within

0 commit comments

Comments
 (0)