Liking cljdoc? Tell your friends :D

puppetlabs.puppetdb.schema


Blocklistclj

Schema type for facts-blocklist

Schema type for facts-blocklist
sourceraw docstring

blocklist->vectorclj

(blocklist->vector fl)

Take a facts list as either a comma seperated string or a sequence and return a vector of those facts

Take a facts list as either a comma seperated string
or a sequence and return a vector of those facts
sourceraw docstring

coerce-to-intclj

Attempts to convert x to an integer. Failures will just return the original value (intending to fail on validation)

Attempts to convert `x` to an integer. Failures will just return
the original value (intending to fail on validation)
sourceraw docstring

conversion-fnsclj

Basic conversion functions for use by Schema

Basic conversion functions for use by Schema
sourceraw docstring

convert-if-neededclj

(convert-if-needed m)

Inputs: [m :- {Class (s/make-fn-schema s/Any s/Any)}]

Wraps each coercion function (value in the map) with a check to only covert the type if it's not already of that type.

Inputs: [m :- {Class (s/make-fn-schema s/Any s/Any)}]

Wraps each coercion function (value in the map) with a check
 to only covert the type if it's not already of that type.
sourceraw docstring

convert-to-schemaclj

(convert-to-schema schema data)

Convert data to the format specified by schema

Convert `data` to the format specified by `schema`
sourceraw docstring

defaulted-dataclj

(defaulted-data schema data)

Default missing values in the data map with values specified in schema

Default missing values in the `data` map with values specified in `schema`
sourceraw docstring

defaulted-maybeclj

(defaulted-maybe schema default)

Create a new defaulted with default being used instead of schema. Defaulted maybe will be validated as it's wrapped schema specifies.

Create a new defaulted with `default` being used instead of `schema`. Defaulted
maybe will be validated as it's wrapped schema specifies.
sourceraw docstring

defaulted-maybe-keysclj

(defaulted-maybe-keys schema)

Returns all the defaulted keys of schema

Returns all the defaulted keys of `schema`
sourceraw docstring

defaulted-maybe?clj

(defaulted-maybe? x)

True when x is a DefaultedMaybe

True when `x` is a DefaultedMaybe
sourceraw docstring

defn-validatedcljmacro

(defn-validated fn-name & forms)
source

Functionclj

Schema type for fn objects

Schema type for fn objects
sourceraw docstring

JSONableclj

Schema type for JSONable objects

Schema type for JSONable objects
sourceraw docstring

maybe?clj

(maybe? x)
source

period?clj

(period? x)

True if x is a JodaTime Period

True if `x` is a JodaTime Period
sourceraw docstring

schema-key->data-keyclj

(schema-key->data-key schema)

Returns the key from the schema map used for retrieving that schemas value from it's data map.

Returns the key from the `schema` map used for retrieving
that schemas value from it's data map.
sourceraw docstring

strip-unknown-keysclj

(strip-unknown-keys schema data)

Remove all keys from data not specified by schema

Remove all keys from `data` not specified by `schema`
sourceraw docstring

Timestampclj

Schema type for JodaTime timestamps

Schema type for JodaTime timestamps
sourceraw docstring

transform-dataclj

(transform-data in-schema out-schema data)

Given an in-schema and out-schema, default missing values and convert to the out-schema format.

Given an `in-schema` and `out-schema`, default missing values
and convert to the `out-schema` format.
sourceraw docstring

unknown-keysclj

(unknown-keys schema data)

Returns all the keys in data not specified by schema

Returns all the keys in `data` not specified by `schema`
sourceraw docstring

WireTimestampclj

Schema type for wire format datetime strings

Schema type for wire format datetime strings
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close