ApiJsonCodec

graviton.shared.ApiJsonCodec
See theApiJsonCodec companion object
trait ApiJsonCodec[A]

ZIO Blocks JSON contract for a public API value.

The representation may differ from A. That indirection is intentional: ZIO Blocks 0.0.51 predates the merged opaque-wrapper layout fix in upstream PR #1578, so Iron values are validated at the wire conversion instead of being handed to the affected primitive-wrapper derivation path.

Attributes

Companion
object
Source
ApiJson.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def decode(value: String): Either[String, A]

Attributes

Source
ApiJson.scala
def encode(value: A): String

Attributes

Source
ApiJson.scala

Attributes

Source
ApiJson.scala