ExampleObject

@Serializable(with = ExampleObject.Companion.Serializer::class)
data class ExampleObject(val summary: String? = null, val description: String? = null, val value: GenericElement? = null, val externalValue: String? = null, val extensions: ExtensionProperties? = null) : Extensible(source)

Example Object (OpenAPI). Represents an example payload/value for a schema.

Notes:

  • Only one of value or externalValue should be present (per OpenAPI).

  • extensions carries vendor-specific fields whose keys start with "x-".

Report a problem

Constructors

Link copied to clipboard
constructor(summary: String? = null, description: String? = null, value: GenericElement? = null, externalValue: String? = null, extensions: ExtensionProperties? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Long description for the example. CommonMark MAY be used.

Link copied to clipboard
open override val extensions: ExtensionProperties?

Specification extensions (keys must start with x-).

Link copied to clipboard

URL that points to an external example value.

Link copied to clipboard

Short description for the example.

Link copied to clipboard

Embedded example value.