We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1749e03 + 42c0bff commit 16623e2Copy full SHA for 16623e2
README.md
@@ -1458,10 +1458,22 @@ Making keys optional or required:
1458
; [:x {:optional true} int?]
1459
; [:y {:optional true} int?]]
1460
1461
-(mu/required-keys [:map [:x {:optional true} int?] [:y int?]])
+(mu/optional-keys [:map [:x int?] [:y int?]]
1462
+ [:x])
1463
+;[:map
1464
+; [:x {:optional true} int?]
1465
+; [:y int?]]
1466
+
1467
+(mu/required-keys [:map [:x {:optional true} int?] [:y {:optional true} int?]])
1468
;[:map
1469
; [:x int?]
1470
; [:y int?]]
1471
1472
+(mu/required-keys [:map [:x {:optional true} int?] [:y {:optional true} int?]]
1473
1474
1475
+; [:x int?]
1476
+; [:y {:optional true} int?]]
1477
```
1478
1479
Closing and opening all `:map` schemas recursively:
0 commit comments