Skip to content

API

tsm_transmute(context, data_dict)

Transmute data using the schema.

The function creates a deep copy of the data and performs all modifications on the copy.

PARAMETER DESCRIPTION
data

A data dict to transmute

TYPE: dict[str, Any]

schema

schema to transmute data

TYPE: dict[str, Any]

root

a root schema type

TYPE: str

RETURNS DESCRIPTION
dict[str, Any]

Transmuted data