lib/gen_lsp/protocol/structures/text_document_identifier.ex

# codegen: do not edit
defmodule GenLSP.Structures.TextDocumentIdentifier do
  @moduledoc """
  A literal to identify a text document in the client.
  """

  import Schematic, warn: false

  use TypedStruct

  @doc """
  ## Fields

  * uri: The text document's uri.
  """
  @derive Jason.Encoder
  typedstruct do
    field :uri, GenLSP.BaseTypes.document_uri(), enforce: true
  end

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