ExMCP.ACP.NameValue (ex_mcp v1.0.0-rc.1)

View Source

Pure normalizers for ACP name/value list shapes.

Summary

Functions

Builds a standard ACP name/value entry.

Normalizes a name/value list or map into a map.

Functions

entry(name, value)

@spec entry(String.t(), String.t()) :: map()

Builds a standard ACP name/value entry.

list(values, builder \\ &entry/2)

@spec list(map() | list(), (String.t(), String.t() -> map())) :: [map()]

map(values)

@spec map(map() | list()) :: map()

Normalizes a name/value list or map into a map.