JSV.Normalizer.Normalize protocol (jsv v0.10.1)

View Source

Protocol used by JSV.Normalizer to transform structs into JSON-compatible data structures when normalizing a schema.

When implementing this protocol you do not need to run any specific normalization by yourself, but rather just return a map with all or a selection of keys. Keys can be atoms or binaries, and values will be normalized recursively.

Summary

Types

t()

All the types that implement this protocol.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

normalize(t)

@spec normalize(term()) :: term()