Example

zio.http.api.openapi.OpenAPI$.Example
final case class Example(summary: String, description: Doc, externalValue: URI) extends ExampleOrReference

In all cases, the example value is expected to be compatible with the type schema of its associated value. Tooling implementations MAY choose to validate compatibility automatically, and reject the example value(s) if incompatible.

Attributes

description

Long description for the example.

externalValue

A URL that points to the literal example. This provides the capability to reference examples that cannot easily be included in JSON or YAML documents.

summary

Short description for the example.

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

Members list

Concise view

Value members

Concrete methods

override def toJson: String

Attributes

Definition Classes
OpenAPIBase

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product