Hierarchical Specifications¶
Defining specifications for data that is hierarchical or nested in nature.
Example hierarchical data¶
Individual specifications¶
Composite Specification¶
keys function combines specifications to form a composite specification in the form of a Clojure hash-map.
Hierarchical Specification¶
A user account is composed of a user-id and customer details. Rather than include the individual customer details, the composite customer-details specification.
The ::user-id specification is as follows
The ::user-account specification
The following data structure will conform to the specification