|
|
|
|
|
by w01fe
4667 days ago
|
|
Thanks for the feedback! Actually, schema can express arbitrary constraints. Your example translates to schema as: {String {(s/required-key "product") [String]
(s/required-key "type") (s/enum "type1" "type2")
s/Any s/Any}} ;; allow any other k-v pairs
|
|
Looks like I'll be using this library sooner than I thought, thanks!