     with {:ok, schema} <- do_get(pointer, xema), do: {:ok, schema, root: xema}
   end
 
-  defp get_x(_ref, _opts), do: {:error, :not_found}
+  defp get(_ref, _opts), do: {:error, :not_found}
 
   defp do_get(_, nil), do: {:error, :not_found}
 

    {:ok, ref, opts}
  end

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

    uri =

  end

  def validate(ref, value, opts) do
    case get(ref, opts) do
      {:ok, %Schema{} = schema, opts} ->
        Xema.validate(schema, value, opts)

