# codegen: do not edit
defmodule GenLSP.Structures.DidOpenTextDocumentParams do
  @moduledoc """
  The parameters sent in an open text document notification
  """

  import SchematicV, warn: false

  use TypedStruct

  @doc """
  ## Fields

  * text_document: The document that was opened.
  """

  typedstruct do
    field(:text_document, GenLSP.Structures.TextDocumentItem.t(), enforce: true)
  end

  @doc false
  @spec schematic() :: SchematicV.t()
  def schematic() do
    schema(__MODULE__, %{
      {"textDocument", :text_document} => GenLSP.Structures.TextDocumentItem.schematic()
    })
  end
end
