View Source Plausible.Stats.JSONSchema.Utils (Plausible v0.0.1)

Module for traversing and modifying JSON schemas.

Summary

Types

@type json() :: map() | list() | String.t() | number() | boolean() | nil
@type transform_fun() :: (json() -> json() | :remove)

Functions

@spec traverse(map(), transform_fun()) :: map() | :remove
@spec traverse(list(), transform_fun()) :: list() | :remove
@spec traverse(String.t() | number() | boolean() | nil, transform_fun()) ::
  json() | :remove