Pick an example value for a schema, using openapi-sampler: the schema's
own example, examples, default or first enum value where present,
otherwise a value generated from its type and format (oneOf/anyOf,
allOf and recursive schemas included). Only required properties are
included, and readOnly properties are left out because the examples are
for requests.
Parameters
schema: unknown
dereferenced OpenAPI schema
Returns unknown
example value, or undefined when none can be produced
Pick an example value for a schema, using openapi-sampler: the schema's own
example,examples,defaultor firstenumvalue where present, otherwise a value generated from its type and format (oneOf/anyOf,allOfand recursive schemas included). Only required properties are included, andreadOnlyproperties are left out because the examples are for requests.