JsonSchema

zio.http.endpoint.openapi.JsonSchema
See theJsonSchema companion object
sealed trait JsonSchema extends Product, Serializable

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class AllOfSchema
object AnyJson.type
class AnyOfSchema
class ArrayType
object Boolean.type
class Enum
class Integer
object Null.type
class Number
class Object
class OneOfSchema
class RefSchema
class String
Show all
Self type

Members list

Value members

Concrete methods

def annotate(annotations: Chunk[MetaData]): JsonSchema
def annotate(annotation: MetaData): JsonSchema
def contentMediaType(mediaType: String): JsonSchema
def default(default: Option[Json]): JsonSchema
def default(default: Json): JsonSchema
def deprecated(deprecated: Boolean): JsonSchema
def description(description: String): JsonSchema
def description(description: Option[String]): JsonSchema
def description: Option[String]
def discriminator(discriminator: Discriminator): JsonSchema
def discriminator(discriminator: Option[Discriminator]): JsonSchema
def examples(examples: Chunk[Json]): JsonSchema
def isCollection: Boolean
def isPrimitive: Boolean
def nullable(nullable: Boolean): JsonSchema

Inherited methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals
def productArity: Int

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product
def productElementName(n: Int): String

Attributes

Inherited from:
Product
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def productPrefix: String

Attributes

Inherited from:
Product

Concrete fields

lazy val toJson: String
lazy val toJsonBytes: Chunk[Byte]