Internal storage shape for SwaggerExample metadata.
Reflects the OpenAPI spec's two example fields: a single default example,
and/or a named map examples. index is used internally to associate
parameter examples with the right parameter position.
Evidence
contracts/common.md#principled-implementation The record holds the single example, the named examples, and the parameter index, which is everything the generator needs to attach examples.
Evidence
contracts/common.md#clear-and-simple-design A flat record whose members are all optional.
Evidence
contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
Evidence
contracts/common.md#meaningful-documentation The comment states the meaning of the members.
Evidence Exclude
contracts/portability.md#os-neutral-implementation Example metadata contains caller values and parameter indices without a native path or process boundary.
Internal storage shape for
SwaggerExamplemetadata.Reflects the OpenAPI spec's two example fields: a single default
example, and/or a named mapexamples.indexis used internally to associate parameter examples with the right parameter position.Evidence
contracts/common.md#principled-implementation The record holds the single example, the named examples, and the parameter index, which is everything the generator needs to attach examples.
Evidence
contracts/common.md#clear-and-simple-design A flat record whose members are all optional.
Evidence
contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.
Evidence
contracts/common.md#meaningful-documentation The comment states the meaning of the members.
Evidence Exclude
contracts/portability.md#os-neutral-implementation Example metadata contains caller values and parameter indices without a native path or process boundary.