Package transform package contains canonical implementations of Kazaam transforms.
Coalesce checks multiple keys and returns the first matching key found in raw byte.
Concat combines any specified fields and literal strings into a single string value with raw byte.
Default sets specific value(s) in output json in raw byte.
Delete deletes keys in-place from the provided data if they exist keys are specified in an array under "keys" in the spec.
Extract returns the specified path as the top-level object in raw byte.
jsonparser strips quotes from returned strings, this adds them back
Pass performs no manipulation of the passed-in data. It is useful for testing/default behavior.
Shift moves values from one provided json path to another in raw byte.
Timestamp parses and formats timestamp strings using the golang syntax
UUID tries to generate a UUID based on spec components
Config contains the options that dictate the behavior of a transform. The internal `spec` object can be an arbitrary json configuration for the transform.
ParseError should be thrown when there is an issue with parsing any of the specification or data
RequireError should be thrown if a required key is missing in the data
SpecError should be thrown if the spec for a transform is malformed