JsonSchema

harness.schema.JsonSchema
See theJsonSchema companion object
sealed trait JsonSchema[A] extends Schema[A]

Attributes

Companion
object
Graph
Supertypes
trait Schema[A]
class Object
trait Matchable
class Any
Known subtypes
class JsonArr[A]
class JsonBool[A]
class JsonNum[A]
trait JsonObj[A]
class ProductJsonObj[A]
class SumJsonObj[A]
class JsonStr[A]
class NotRequired[A]
Show all
Self type

Members list

Value members

Concrete methods

override def tiemap[B](to: A => Either[String, B], from: B => A)(using evidence$3: Tag[B]): JsonSchema[B]

Attributes

Definition Classes
override def timap[B](to: A => B, from: B => A)(using evidence$4: Tag[B]): JsonSchema[B]

Attributes

Definition Classes

Inherited methods

final def decode(string: String): Either[String, A]

Attributes

Inherited from:
Schema
final def encode(value: A): String

Attributes

Inherited from:
Schema

Abstract fields

val codec: JsonCodec[A]

Inherited fields

final val ref: SchemaRef

Attributes

Inherited from:
Schema
val tag: HTag[A]

Attributes

Inherited from:
Schema