Concat

zio.blocks.schema.json.MergeStrategy.Concat
case object Concat extends MergeStrategy

Concatenate arrays instead of merging by index. Objects are still merged by key recursively.

Attributes

Source
MergeStrategy.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait (DynamicOptic, Json, Json) => Json
class Object
trait Matchable
class Any
Show all
Self type
Concat.type

Members list

Type members

Inherited types

type MirroredElemLabels = EmptyTuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Singleton
Source
Mirror.scala
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton
Source
Mirror.scala
type MirroredMonoType = this.type

The mirrored *-type.

The mirrored *-type.

Attributes

Inherited from:
Singleton
Source
Mirror.scala
type MirroredType = this.type

Attributes

Inherited from:
Singleton
Source
Mirror.scala

Inherited and Abstract types

type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def apply(path: DynamicOptic, left: Json, right: Json): Json

Applies the body of this function to the arguments.

Applies the body of this function to the arguments.

Value parameters

v1

the 1st argument

v2

the 2nd argument

v3

the 3rd argument

Attributes

Returns

the result of function application.

Source
MergeStrategy.scala
def recurse(path: DynamicOptic, jsonType: JsonType): Boolean

Determines whether the merge driver should recurse into a container (object or array) at the given path.

Determines whether the merge driver should recurse into a container (object or array) at the given path.

If true, the driver merges by key (objects) or by index (arrays), recursively calling merge on each child pair.

If false, the driver calls apply with the container values directly.

Attributes

Source
MergeStrategy.scala

Inherited methods

Creates a curried version of this function.

Creates a curried version of this function.

Attributes

Returns

a function f such that f(x1)(x2)(x3) == apply(x1, x2, x3)

Inherited from:
Function3
Source
Function3.scala
def fromProduct(p: Product): MirroredMonoType

Creates a new instance of type T with elements taken from product p.

Creates a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton
Source
Mirror.scala
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function3 -> Any
Inherited from:
Function3
Source
Function3.scala
def tupled: ((DynamicOptic, Json, Json)) => Json

Creates a tupled version of this function: instead of 3 arguments, it accepts a single scala.Tuple3 argument.

Creates a tupled version of this function: instead of 3 arguments, it accepts a single scala.Tuple3 argument.

Attributes

Returns

a function f such that f((x1, x2, x3)) == f(Tuple3(x1, x2, x3)) == apply(x1, x2, x3)

Inherited from:
Function3
Source
Function3.scala