JsonSchema

zio.http.endpoint.openapi.JsonSchema
See theJsonSchema companion trait
object JsonSchema

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
JsonSchema.type

Members list

Type members

Classlikes

final case class AllOfSchema(allOf: Chunk[JsonSchema]) extends JsonSchema

Attributes

Supertypes
trait JsonSchema
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class AnnotatedSchema(schema: JsonSchema, annotation: MetaData) extends JsonSchema

Attributes

Supertypes
trait JsonSchema
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case object AnyJson extends JsonSchema

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait JsonSchema
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
AnyJson.type
final case class AnyOfSchema(anyOf: Chunk[JsonSchema]) extends JsonSchema

Attributes

Supertypes
trait JsonSchema
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class ArrayType(items: Option[JsonSchema]) extends JsonSchema

Attributes

Supertypes
trait JsonSchema
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case object Boolean extends JsonSchema

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait JsonSchema
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Boolean.type

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait ContentEncoding extends Product, Serializable

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object Base16.type
object Base32.type
object Base64.type
object Binary.type
object EightBit.type
object QuotedPrintable.type
object SevenBit.type
Show all
final case class Enum(values: Chunk[EnumValue]) extends JsonSchema

Attributes

Supertypes
trait JsonSchema
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object EnumValue

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
EnumValue.type
sealed trait EnumValue

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Bool
object Null.type
class Num
class SchemaValue
class Str
Self type
final case class Integer(format: IntegerFormat) extends JsonSchema

Attributes

Supertypes
trait JsonSchema
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object IntegerFormat

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait IntegerFormat extends Product, Serializable

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object Int32.type
object Int64.type
object Timestamp.type
object MetaData

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
MetaData.type
sealed trait MetaData extends Product, Serializable

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Default
object Deprecated.type
class Description
class Examples
class Nullable
Show all
case object Null extends JsonSchema

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait JsonSchema
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Null.type
final case class Number(format: NumberFormat) extends JsonSchema

Attributes

Supertypes
trait JsonSchema
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object NumberFormat

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait NumberFormat extends Product, Serializable

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object Double.type
object Float.type
final case class Object(properties: Map[String, JsonSchema], additionalProperties: Either[Boolean, JsonSchema], required: Chunk[String]) extends JsonSchema

Attributes

Companion
object
Supertypes
trait JsonSchema
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Object

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Object.type
final case class OneOfSchema(oneOf: Chunk[JsonSchema]) extends JsonSchema

Attributes

Supertypes
trait JsonSchema
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class Pattern(value: String) extends Product, Serializable

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class RefSchema(ref: String) extends JsonSchema

Attributes

Supertypes
trait JsonSchema
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object SchemaStyle

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait SchemaStyle extends Product, Serializable

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object Compact.type
object Inline.type
object Reference.type
final case class String(format: Option[StringFormat], pattern: Option[Pattern]) extends JsonSchema

Attributes

Companion
object
Supertypes
trait JsonSchema
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object String

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
String.type
object StringFormat

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait StringFormat extends Product, Serializable

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Custom
object Date.type
object DateTime.type
object Duration.type
object Email.type
object Hostname.type
object IPv4.type
object IPv6.type
object IRI.type
object IRIReference.type
object IdnEmail.type
object IdnHostname.type
object JSONPointer.type
object Password.type
object Regex.type
object RelativeJSONPointer.type
object Time.type
object URI.type
object URIRef.type
object URITemplate.type
object UUID.type
Show all

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromZSchema(schema: Schema[_], refType: SchemaStyle): JsonSchema
def fromZSchemaMulti(schema: Schema[_], refType: SchemaStyle): JsonSchemas
def obj(properties: (String, JsonSchema)*): JsonSchema

Implicits

Implicits

implicit val schema: Schema[JsonSchema]