lib/gen_lsp/protocol/structures/did_change_watched_files_params.ex

# codegen: do not edit
defmodule GenLSP.Structures.DidChangeWatchedFilesParams do
  @moduledoc """
  The watched files change notification's parameters.
  """

  import Schematic, warn: false

  use TypedStruct

  @doc """
  ## Fields

  * changes: The actual file events.
  """
  @derive Jason.Encoder
  typedstruct do
    field :changes, list(GenLSP.Structures.FileEvent.t()), enforce: true
  end

  @doc false
  @spec schematic() :: Schematic.t()
  def schematic() do
    schema(__MODULE__, %{
      {"changes", :changes} => list(GenLSP.Structures.FileEvent.schematic())
    })
  end
end