Closed whatyouhide closed 3 years ago
This should also work:
schema = [
docs: [
type: {:or, [:boolean, keyword_list: [enabled: [type: :boolean]]]}
]
]
Is it better? Thoughts?
@josevalim that's the same data structure, yeah, it works in the same way. Do you mean I should update the examples?
@josevalim I completely overlooked nested schemas in #54. This to me seems like the best (= least horrible, still pretty ugly) way of dealing with them.
Thoughts?