Skip to content

Commit ebea75e

Browse files
committed
clarify in union section
Signed-off-by: Clemens Vasters <clemens@vasters.com>
1 parent 9c1dbe8 commit ebea75e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

draft-vasters-json-structure-core.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,8 +1104,10 @@ specification.
11041104

11051105
### Unions {#unions}
11061106

1107-
- Type unions are formed as sets of primitive types and type references. It is
1108-
NOT permitted to define a compound type inline inside a union.
1107+
- Non-discriminated type unions are formed as sets of primitive types and type
1108+
references. It is NOT permitted to define a compound type inline inside a
1109+
non-discriminated type union. Discriminated unions are formed as a
1110+
[`choice`]({{choice}}) type to which the rules of this section do not apply.
11091111
- A type union is a composite type reference and not a standalone compound type
11101112
and is therefore not named.
11111113
- The JSON node described by a schema with a type union MUST conform to at least

0 commit comments

Comments
 (0)