ArrayOp

zio.blocks.schema.json.JsonPatch.ArrayOp
See theArrayOp companion trait
object ArrayOp

Attributes

Companion
trait
Source
JsonPatch.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
ArrayOp.type

Members list

Type members

Classlikes

final case class Append(values: Chunk[Json]) extends ArrayOp

Appends elements to the end of the array.

Appends elements to the end of the array.

Value parameters

values

The values to append

Attributes

Source
JsonPatch.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait ArrayOp
class Object
trait Matchable
class Any
Show all
final case class Delete(index: Int, count: Int) extends ArrayOp

Removes elements starting at the given index.

Removes elements starting at the given index.

Value parameters

count

The number of elements to remove

index

The starting position (0-based)

Attributes

Source
JsonPatch.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait ArrayOp
class Object
trait Matchable
class Any
Show all
final case class Insert(index: Int, values: Chunk[Json]) extends ArrayOp

Inserts elements at the given index.

Inserts elements at the given index.

Value parameters

index

The position to insert at (0-based)

values

The values to insert

Attributes

Source
JsonPatch.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait ArrayOp
class Object
trait Matchable
class Any
Show all
final case class Modify(index: Int, op: Op) extends ArrayOp

Applies an operation to the element at the given index.

Applies an operation to the element at the given index.

Value parameters

index

The index of the element to modify (0-based)

op

The operation to apply to the element

Attributes

Source
JsonPatch.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait ArrayOp
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala