(Extremely) experimental support for 'completing' partial datums to match a schema. To use it, you must provide your own test.check dependency.
(Extremely) experimental support for 'completing' partial datums to match a schema. To use it, you must provide your own test.check dependency.
(complete partial-datum & completer-args)
Fill in partial-datum to make it validate schema.
Fill in partial-datum to make it validate schema.
(completer schema)
(completer schema coercion-matcher)
(completer schema coercion-matcher leaf-generators)
(completer schema coercion-matcher leaf-generators wrappers)
Inputs: ([schema] [schema coercion-matcher] [schema coercion-matcher leaf-generators] [schema coercion-matcher :- coerce/CoercionMatcher leaf-generators :- generators/LeafGenerators wrappers :- generators/GeneratorWrappers])
Produce a function that simultaneously coerces, completes, and validates a datum.
Inputs: ([schema] [schema coercion-matcher] [schema coercion-matcher leaf-generators] [schema coercion-matcher :- coerce/CoercionMatcher leaf-generators :- generators/LeafGenerators wrappers :- generators/GeneratorWrappers]) Produce a function that simultaneously coerces, completes, and validates a datum.
(completer* spec s sub-checker generator-opts)
A function applied to a datum as part of coercion to complete missing fields.
A function applied to a datum as part of coercion to complete missing fields.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close