# codegen: do not edit
defmodule GenLSP.Structures.CreateFilesParams do
  @moduledoc """
  The parameters sent in notifications/requests for user-initiated creation of
  files.

  @since 3.16.0
  """

  import SchematicV, warn: false

  use TypedStruct

  @doc """
  ## Fields

  * files: An array of all files/folders created in this operation.
  """

  typedstruct do
    field(:files, list(GenLSP.Structures.FileCreate.t()), enforce: true)
  end

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