ObjectOp

zio.blocks.schema.json.JsonPatch.ObjectOp
See theObjectOp companion trait
object ObjectOp

Attributes

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

Members list

Type members

Classlikes

final case class Add(key: String, value: Json) extends ObjectOp

Adds a field to the object.

Adds a field to the object.

Value parameters

key

The field name

value

The field value

Attributes

Source
JsonPatch.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait ObjectOp
class Object
trait Matchable
class Any
Show all
final case class Modify(key: String, patch: JsonPatch) extends ObjectOp

Applies a patch to the value at the given field.

Applies a patch to the value at the given field.

Value parameters

key

The field name

patch

The patch to apply to the field value

Attributes

Source
JsonPatch.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait ObjectOp
class Object
trait Matchable
class Any
Show all
final case class Remove(key: String) extends ObjectOp

Removes a field from the object.

Removes a field from the object.

Value parameters

key

The field name to remove

Attributes

Source
JsonPatch.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait ObjectOp
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