Packages

object JsonSchema extends Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsonSchema
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class AllOfSchema(allOf: Chunk[JsonSchema]) extends JsonSchema with Product with Serializable
  2. final case class AnnotatedSchema(schema: JsonSchema, annotation: MetaData) extends JsonSchema with Product with Serializable
  3. final case class AnyOfSchema(anyOf: Chunk[JsonSchema]) extends JsonSchema with Product with Serializable
  4. final case class ArrayType(items: Option[JsonSchema], minItems: Option[Int], uniqueItems: Boolean) extends JsonSchema with Product with Serializable
  5. sealed trait ContentEncoding extends Product with Serializable
  6. final case class Enum(values: Chunk[EnumValue]) extends JsonSchema with Product with Serializable
  7. sealed trait EnumValue extends AnyRef
    Annotations
    @noDiscriminator()
  8. final case class Integer(format: IntegerFormat, minimum: Option[Long] = None, exclusiveMinimum: Option[Either[Boolean, Long]] = None, maximum: Option[Long] = None, exclusiveMaximum: Option[Either[Boolean, Long]] = None, multipleOf: Option[Long] = None) extends JsonSchema with Product with Serializable
  9. sealed trait IntegerFormat extends Product with Serializable
  10. case class JsonSchemaRoot(root: JsonSchema, children: Map[java.lang.String, JsonSchema]) extends Product with Serializable

    Represents a complete JSON Schema document, consisting of:

    Represents a complete JSON Schema document, consisting of:

    root

    The top-level JsonSchema for the document.

    children

    A map of definition names to their corresponding JsonSchema instances.

  11. sealed trait MetaData extends Product with Serializable
  12. final case class Number(format: NumberFormat, minimum: Option[Double] = None, exclusiveMinimum: Option[Either[Boolean, Double]] = None, maximum: Option[Double] = None, exclusiveMaximum: Option[Either[Boolean, Double]] = None, multipleOf: Option[Double] = None) extends JsonSchema with Product with Serializable
  13. sealed trait NumberFormat extends Product with Serializable
  14. final case class Object(properties: Map[java.lang.String, JsonSchema], additionalProperties: Either[Boolean, JsonSchema], required: Chunk[java.lang.String]) extends JsonSchema with Product with Serializable
  15. final case class OneOfSchema(oneOf: Chunk[JsonSchema]) extends JsonSchema with Product with Serializable
  16. final case class Pattern(value: java.lang.String) extends Product with Serializable
  17. final case class RefSchema(ref: java.lang.String) extends JsonSchema with Product with Serializable
  18. final case class SchemaRef(spec: SchemaSpec, style: SchemaStyle) extends Product with Serializable
  19. sealed trait SchemaSpec extends Product with Serializable
  20. sealed trait SchemaStyle extends Product with Serializable
  21. final case class String(format: Option[StringFormat], pattern: Option[Pattern], maxLength: Option[Int] = None, minLength: Option[Int] = None) extends JsonSchema with Product with Serializable
  22. sealed trait StringFormat extends Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def flatten(value: Bool[Predicate[_]], not: Boolean = false): Chunk[Predicate[_]]
  9. def fromSegmentCodec(codec: SegmentCodec[_]): JsonSchema
  10. def fromTextCodec(codec: TextCodec[_]): JsonSchema
  11. def fromZSchema(schema: Schema[_], refType: SchemaRef): JsonSchema
  12. def fromZSchemaMultiple(schema: Schema[_], refType: SchemaRef, seen: Set[java.lang.String] = Set.empty): JsonSchemas
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def jsonSchema(schema: Schema[_]): JsonSchemaRoot

    Builds a JSON Schema document from the given ZIO Schema

    Builds a JSON Schema document from the given ZIO Schema

    schema

    The schema to convert into a JSON Schema document.

    returns

    A JsonSchemaRoot representing a valid JSON Schema document.

  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  20. def obj(properties: (java.lang.String, JsonSchema)*): JsonSchema
  21. implicit val schema: Schema[JsonSchema]
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): java.lang.String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. case object AnyJson extends JsonSchema with Product with Serializable
  28. case object Boolean extends JsonSchema with Product with Serializable
  29. object ContentEncoding extends Serializable
  30. object EnumValue
  31. object Integer extends Serializable
  32. object IntegerFormat extends Serializable
  33. object JsonSchemaRoot extends Serializable
  34. object MetaData extends Serializable
  35. case object Null extends JsonSchema with Product with Serializable
  36. object Number extends Serializable
  37. object NumberFormat extends Serializable
  38. object Object extends Serializable
  39. object SchemaSpec extends Serializable
  40. object SchemaStyle extends Serializable
  41. object String extends Serializable
  42. object StringFormat extends Serializable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  2. def fromZSchema(schema: Schema[_], refType: SchemaStyle = SchemaStyle.Inline): JsonSchema
    Annotations
    @deprecated
    Deprecated

    (Since version 3.8) use SchemaRef instead of SchemaStyle

  3. def fromZSchemaMulti(schema: Schema[_], refType: SchemaStyle = SchemaStyle.Inline, seen: Set[java.lang.String] = Set.empty): JsonSchemas
    Annotations
    @deprecated
    Deprecated

    (Since version 3.8) use fromZSchemaMultiple

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped