     with {:ok, schema} <- do_get(pointer, xema), do: {:ok, schema, root: xema}
   end
 
-  defp get_x(%Ref{remote: true, url: url, path: path, pointer: pointer}, opts) do
+  defp get(%Ref{remote: true, url: url, path: path, pointer: pointer}, opts) do
     uri = Path.join(url, path)
 
     xema = Map.get(opts[:root].refs, uri)

    with {:ok, schema} <- do_get(pointer, xema), do: {:ok, schema, root: xema}
  end

  defp get_x(_ref, _opts), do: {:error, :not_found}

  defp do_get(_, nil), do: {:error, :not_found}


    {:ok, ref, opts}
  end

  defp get(%Ref{remote: true, url: nil, path: path, pointer: pointer}, opts) do
    uri = URI.parse(opts[:id])

    uri =
