UNPKG

@scalar/openapi-types

Version:
43 lines 1.86 kB
import { z } from 'zod'; /** * Example Object * * An object grouping an internal or external example value with basic summary and description metadata. This object is * typically used in fields named examples (plural), and is a referenceable alternative to older example (singular) * fields that do not support referencing or metadata. * * Examples allow demonstration of the usage of properties, parameters and objects within OpenAPI. * * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#example-object */ export declare const ExampleObjectSchema: z.ZodObject<{ /** * Short description for the example. */ summary: z.ZodOptional<z.ZodString>; /** * Long description for the example. CommonMark syntax MAY be used for rich text representation. */ description: z.ZodOptional<z.ZodString>; /** * Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON or YAML, use a string value to contain the example, escaping where necessary. */ value: z.ZodOptional<z.ZodAny>; /** * A URI that identifies the literal example. This provides the capability to reference examples that cannot easily be * included in JSON or YAML documents. The value field and externalValue field are mutually exclusive. See the rules * for resolving Relative References. */ externalValue: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { description?: string | undefined; summary?: string | undefined; value?: any; externalValue?: string | undefined; }, { description?: string | undefined; summary?: string | undefined; value?: any; externalValue?: string | undefined; }>; //# sourceMappingURL=example-object.d.ts.map