lib/gen_lsp/protocol/structures/document_formatting_client_capabilities.ex

# codegen: do not edit
defmodule GenLSP.Structures.DocumentFormattingClientCapabilities do
  @moduledoc """
  Client capabilities of a {@link DocumentFormattingRequest}.
  """

  import Schematic, warn: false

  use TypedStruct

  @doc """
  ## Fields

  * dynamic_registration: Whether formatting supports dynamic registration.
  """
  @derive Jason.Encoder
  typedstruct do
    field :dynamic_registration, boolean()
  end

  @doc false
  @spec schematic() :: Schematic.t()
  def schematic() do
    schema(__MODULE__, %{
      optional({"dynamicRegistration", :dynamic_registration}) => bool()
    })
  end
end