lib/gen_lsp/protocol/structures/did_change_watched_files_registration_options.ex

# codegen: do not edit
defmodule GenLSP.Structures.DidChangeWatchedFilesRegistrationOptions do
  @moduledoc """
  Describe options to be used when registered for text document change events.
  """

  import Schematic, warn: false

  use TypedStruct

  @doc """
  ## Fields

  * watchers: The watchers to register.
  """
  @derive Jason.Encoder
  typedstruct do
    field :watchers, list(GenLSP.Structures.FileSystemWatcher.t()), enforce: true
  end

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