Skip to content

Commit 3c7b130

Browse files
authored
Spec: Clarify variant shredding spec (#512)
1 parent ff93031 commit 3c7b130

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

VariantShredding.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ The list `element` must be a required group.
126126
The `element` group can contain `value` and `typed_value` fields.
127127
The element's `value` field stores the element as Variant-encoded `binary` when the `typed_value` is not present or cannot represent it.
128128
The `typed_value` field may be omitted when not shredding elements as a specific type.
129-
When `typed_value` is omitted, `value` must be `required`.
129+
The `value` field may be omitted when shredding elements as a specific type.
130+
However, at least one of the two fields must be present.
130131

131132
For example, a `tags` Variant may be shredded as a list of strings using the following definition:
132133
```

0 commit comments

Comments
 (0)