(schema proto-map-or-class & ks)
Accepts a proto-map or class of a POJO, and returns a schema as a map.
If ks
not supplied, will return the schema of the given class. Otherwise, will drill down to the schema using ks
as a path
Accepts a proto-map or class of a POJO, and returns a schema as a map. If `ks` not supplied, will return the schema of the given class. Otherwise, will drill down to the schema using `ks` as a path
(search f clazz)
Applies f
, a predicate, to every field in the schema of the supplied class, recursively, and
returns a seq of paths to fields for which the function returned a truthy value.
f
must be a 2 arity function, receiving the field name (keyword) and its type as given in pronto.schema/schema
.
Applies `f`, a predicate, to every field in the schema of the supplied class, recursively, and returns a seq of paths to fields for which the function returned a truthy value. `f` must be a 2 arity function, receiving the field name (keyword) and its type as given in `pronto.schema/schema`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close