CalCom.Codec (cal_com v0.3.0)

Copy Markdown

The single strict boundary for Cal.com wire values.

Summary

Functions

Return a payload-shape error without copying request secrets.

Parse every documented field into the requested concrete schema.

Serialize a parsed object without adding absent PATCH fields.

Remove credentials before preserving a provider payload.

Parse a value using a fixed compiled rule.

Serialize a typed value at the request boundary.

Functions

invalid(field)

@spec invalid(String.t()) :: {:error, CalCom.Error.t()}

Return a payload-shape error without copying request secrets.

object(module, raw)

@spec object(module(), term()) :: {:ok, struct()} | {:error, CalCom.Error.t()}

Parse every documented field into the requested concrete schema.

object_wire(value)

@spec object_wire(struct()) :: map()

Serialize a parsed object without adding absent PATCH fields.

redact(raw)

@spec redact(term()) :: term()

Remove credentials before preserving a provider payload.

value(rule, raw)

@spec value(CalCom.Rule.t(), term()) :: {:ok, term()} | :error

Parse a value using a fixed compiled rule.

wire(value)

@spec wire(term()) :: term()

Serialize a typed value at the request boundary.