lib/gen_lsp/protocol/structures/cancel_params.ex

# codegen: do not edit
defmodule GenLSP.Structures.CancelParams do
  import Schematic, warn: false

  use TypedStruct

  @doc """
  ## Fields

  * id: The request id to cancel.
  """
  @derive Jason.Encoder
  typedstruct do
    field :id, integer() | String.t(), enforce: true
  end

  @doc false
  @spec schematic() :: Schematic.t()
  def schematic() do
    schema(__MODULE__, %{
      {"id", :id} => oneof([int(), str()])
    })
  end
end