ResponseSchema

zio.http.api.openapi.OpenAPI$.Schema$.ResponseSchema
final case class ResponseSchema(nullable: Boolean, discriminator: Option[Discriminator], xml: Option[XML], externalDocs: URI, example: String, deprecated: Boolean) extends Schema with Definition

The Schema Object allows the definition of input and output data types.

Marked as readOnly. This means that it MAY be sent as part of a response but SHOULD NOT be sent as part of the request. If the property is in the required list, the required will take effect on the response only.

Attributes

deprecated

Specifies that a schema is deprecated and SHOULD be transitioned out of usage.

discriminator

Adds support for polymorphism. The discriminator is an object name that is used to differentiate between other schemas which may satisfy the payload description.

example

A free-form property to include an example of an instance for this schema.

externalDocs

Additional external documentation for this schema.

nullable

A true value adds "null" to the allowed type specified by the type keyword, only if type is explicitly defined within the same Schema Object. Other Schema Object constraints retain their defined behavior, and therefore may disallow the use of null as a value. A false value leaves the specified or default type unmodified.

xml

This MAY be used only on properties schemas. It has no effect on root schemas. Adds additional metadata to describe the XML representation of this property.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Schema
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
override def toJson: String

Attributes

Definition Classes
Schema -> OpenAPIBase
Inherited from:
Schema