Liking cljdoc? Tell your friends :D

gen-avro.core


genclj

(gen schema)
(gen schema opts)

See gen-one-of This variant accepts one schema rather than multiple.

See `gen-one-of`
This variant accepts one schema rather than multiple.
raw docstring

gen-one-ofclj

(gen-one-of schemas)
(gen-one-of schemas opts)

Generates random clojure data that conforms to one of the schemas provided.

INPUT schemas - a collection of schemas, or maps that represent schemas. opts - an optional map, containing generation configuration: { :seed < integer | :previous > - The seed to use for random generation, with the same seed you will also receive identical results. :type-registry - defaults to jackdaw.serdes.avro/+base-schema-type-registry+, see jackdaw for more details on how the type registry needs to work. :overlay - if present and a clojure map is randomly generated, deeply merges the result. :overlay-fn - a function that will always be called on the generated result, if specified :overlay does nothing. }

OUTPUT Returns clojure data generated against one of the schemas. If possible, the seed used is merged into the metadata of the returned object.

Generates random clojure data that conforms to one of the schemas provided.

INPUT
schemas - a collection of schemas, or maps that represent schemas.
opts - an optional map, containing generation configuration:
  {
    :seed < integer | :previous > - The seed to use for random generation, with the same seed you will also receive identical results.
    :type-registry - defaults to jackdaw.serdes.avro/+base-schema-type-registry+, see jackdaw for more details on how the type registry needs to work.
    :overlay - if present and a clojure map is randomly generated, deeply merges the result.
    :overlay-fn - a function that will always be called on the generated result, if specified :overlay does nothing.
  }

OUTPUT
Returns clojure data generated against one of the schemas.
If possible, the seed used is merged into the metadata of the returned object.
raw docstring

previous-seedclj

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close