File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 153153; ; Sequence pattern schemas are orthogonal to this group but deserve a separate discussion.
154154
155155; ; Schemas syntax can be:
156+
156157; ; - keywords: `:int`
157158; ; - functions or vars: `int?`
158159; ; - vector with properties and maybe children: `[:int {:min 1}]`, `[:map {:closed true} [:a :int]]`
170171(v 4 )
171172
172173; ; The worker functions are:
174+
173175; ; - validator: Any -> Boolean.
174176; ; - explainer: Any -> null | Explanation.
175177; ; - parser/unparser: parser converts disjunctions to tagged tuples.
514516; ; we've also seen parsing at work.
515517
516518; ; Schemas supporting alternation also support tagged alternation:
519+
517520; ; - or -> orn
518521; ; - alt -> altn
519522
@@ -905,6 +908,7 @@ inferred
905908; ; :from-b {:optional true} schema-b]
906909; ; ```
907910; ; Pat ourselves on the back because we cover two options with one schema
911+
908912; ; - Wrong! This schema covers 4 options, 2 of them are incorrect!
909913; ; - We can find this out when we generate values
910914
You can’t perform that action at this time.
0 commit comments