Object

zio.http.endpoint.openapi.JsonSchema.Object
See theObject companion object
final case class Object(properties: Map[String, JsonSchema], additionalProperties: Either[Boolean, JsonSchema], required: Chunk[String]) extends JsonSchema

Attributes

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

Members list

Value members

Concrete methods

def addAll(value: Chunk[(String, JsonSchema)]): Object

This Object represents a "closed dictionary", aka a case class

This Object represents a "closed dictionary", aka a case class

See: https://github.com/zio/zio-http/issues/3048#issuecomment-2306291192

Attributes

Can't represent a case class and a Map at the same time

Can't represent a case class and a Map at the same time

Attributes

This Object represents an "open dictionary", aka a Map

This Object represents an "open dictionary", aka a Map

See: https://github.com/zio/zio-http/issues/3048#issuecomment-2306291192

Attributes

def required(required: Chunk[String]): Object

Inherited methods

def annotate(annotation: MetaData): JsonSchema

Attributes

Inherited from:
JsonSchema
def annotate(annotations: Chunk[MetaData]): JsonSchema

Attributes

Inherited from:
JsonSchema

Attributes

Inherited from:
JsonSchema

Attributes

Inherited from:
JsonSchema

Attributes

Inherited from:
JsonSchema
def default(default: Json): JsonSchema

Attributes

Inherited from:
JsonSchema
def default(default: Option[Json]): JsonSchema

Attributes

Inherited from:
JsonSchema
def deprecated(deprecated: Boolean): JsonSchema

Attributes

Inherited from:
JsonSchema

Attributes

Inherited from:
JsonSchema
def description(description: Option[String]): JsonSchema

Attributes

Inherited from:
JsonSchema
def description(description: String): JsonSchema

Attributes

Inherited from:
JsonSchema

Attributes

Inherited from:
JsonSchema
def discriminator(discriminator: Discriminator): JsonSchema

Attributes

Inherited from:
JsonSchema
def examples(examples: Chunk[Json]): JsonSchema

Attributes

Inherited from:
JsonSchema

Attributes

Inherited from:
JsonSchema
final def isNullable: Boolean

Attributes

Inherited from:
JsonSchema

Attributes

Inherited from:
JsonSchema
def nullable(nullable: Boolean): JsonSchema

Attributes

Inherited from:
JsonSchema

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def toJson: String

Attributes

Inherited from:
JsonSchema

Attributes

Inherited from:
JsonSchema

Attributes

Inherited from:
JsonSchema