View Source OpenApiSpex.Example (open_api_spex v3.19.0)

Defines the OpenApiSpex.Example.t type.

Link to this section Summary

Link to this section Types

@type t() :: %OpenApiSpex.Example{
  description: String.t() | nil,
  extensions: %{required(String.t()) => any()} | nil,
  externalValue: String.t() | nil,
  summary: String.t() | nil,
  value: any()
}

Example Object

In all cases, the example value is expected to be compatible with the type schema of its associated value.