Skip to content

Commit c5d436d

Browse files
committed
feat(functions): Allow for using JSON in functions
1 parent b690319 commit c5d436d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/snippets/function-transform-snippet.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ The function transform allows you to use a subset of the Elixir standard library
4242
- [Decimal](https://hexdocs.pm/decimal/readme.html)
4343
- [URI](https://hexdocs.pm/elixir/URI.html)
4444
- [Base](https://hexdocs.pm/elixir/Base.html)
45+
- [JSON](https://hexdocs.pm/elixir/JSON.html)
4546

4647
In addition to the standard library modules, you can also use certain other dependencies:
4748

lib/sequin/functions/minielixir/validator.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ defmodule Sequin.Functions.MiniElixir.Validator do
303303
defp fnok([URI, _]), do: :ok
304304
defp fnok([Base, _]), do: :ok
305305
defp fnok([UUID, _]), do: :ok
306+
defp fnok([JSON, _]), do: :ok
306307
defp fnok(p), do: {:error, :validator, "Forbidden function: #{redot(p)}"}
307308

308309
# Convert left-associated instances of the . operator to a get_in path

0 commit comments

Comments
 (0)