Str

net.hamnaberg.schema.structure.Str
final case class Str(format: Option[String], minLength: Option[Int], maxLength: Option[Int], pattern: Option[Pattern]) extends Schema[String]

Attributes

Source
Schema.scala
Graph
Supertypes
trait Schema[String]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def addLocalDefinition(ref: String, definition: Schema[Json]): Meta[String]

Attributes

Inherited from:
Schema
Source
Schema.scala
def asList(min: Option[Int], max: Option[Int]): Schema[List[String]]

Attributes

Inherited from:
Schema
Source
Schema.scala
def asSeq(min: Option[Int], max: Option[Int]): Schema[Seq[String]]

Attributes

Inherited from:
Schema
Source
Schema.scala
def asVector(min: Option[Int], max: Option[Int]): Schema[Vector[String]]

Attributes

Inherited from:
Schema
Source
Schema.scala
def at(field: String): Schema[String]

Attributes

Inherited from:
Schema
Source
Schema.scala
def compiled: SchemaLike

Attributes

Inherited from:
Schema
Source
Schema.scala
def decode(json: Json): Result[String]

Attributes

Inherited from:
Schema
Source
Schema.scala

Attributes

Inherited from:
Schema
Source
Schema.scala
def encode(a: String): Json

Attributes

Inherited from:
Schema
Source
Schema.scala

Attributes

Inherited from:
Schema
Source
Schema.scala
def imap[B](f: String => B)(g: B => String): Schema[B]

Attributes

Inherited from:
Schema
Source
Schema.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def reference(ref: String): Schema[Json]

Attributes

Inherited from:
Schema
Source
Schema.scala
def toAny: Schema[Json]

Attributes

Inherited from:
Schema
Source
Schema.scala

Attributes

Inherited from:
Schema
Source
Schema.scala

Attributes

Inherited from:
Schema
Source
Schema.scala
def withDeprecated(deprecated: Boolean): Meta[String]

Attributes

Inherited from:
Schema
Source
Schema.scala
def withDescription(description: String): Meta[String]

Attributes

Inherited from:
Schema
Source
Schema.scala

Attributes

Inherited from:
Schema
Source
Schema.scala

Attributes

Inherited from:
Schema
Source
Schema.scala
def withMetaSchema(metaSchema: String): Meta[String]

Attributes

Inherited from:
Schema
Source
Schema.scala
def withModifyMeta(modify: (Meta[String]) => Meta[String]): Meta[String]

Attributes

Inherited from:
Schema
Source
Schema.scala
def withTitle(title: String): Meta[String]

Attributes

Inherited from:
Schema
Source
Schema.scala
def xmap[B](f: String => Result[B])(g: B => String): Schema[B]

Attributes

Inherited from:
Schema
Source
Schema.scala

Inherited fields

val compiled_: Eval[SchemaLike]

Attributes

Inherited from:
Schema
Source
Schema.scala

Attributes

Inherited from:
Schema
Source
Schema.scala

Attributes

Inherited from:
Schema
Source
Schema.scala