yummly / validaze

Hiccup-inspired DSL implementation of refinement types for validating JSON data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

allow requiring one property if another property is set

gdruck opened this issue · comments

i.e. {:required? [:when "content_id" some?]}

@gdruck this one was finished a while back yes? is there anything more to be done for it?

the syntax suggested above doesn't work, but I don't remember if we decided to do it another way ...

@gdruck you'll need to update to 1.3.1 when you want to use this feature.