Exonerate.Pointer.to_uri

You're seeing just the function to_uri, go back to Exonerate.Pointer module for more information.
Link to this function

to_uri(path, opts \\ [])

Specs

to_uri(t(), keyword()) :: String.t()

creates a JSONPointer to its URI equivalent.

options

  • context: prepends a context to the uri.
iex> alias Exonerate.Pointer
iex> Pointer.to_uri(["foo", "bar"])
"/bar/foo"
iex> Pointer.to_uri(["foo~bar", "baz"])
"/baz/foo~0bar"
iex> Pointer.to_uri(["€", "currency"])
"/currency/%E2%82%AC"
iex> Pointer.to_uri([], authority: "foo")
"foo#/"