@scalar/openapi-types
Version:
Modern OpenAPI types
23 lines (22 loc) • 793 B
JavaScript
import { z } from "zod";
const ReferenceObjectSchema = z.object({
/**
* REQUIRED. The reference identifier. This MUST be in the form of a URI.
*/
$ref: z.string(),
/**
* A short summary which by default SHOULD override that of the referenced component. If the referenced object-type
* does not allow a summary field, then this field has no effect.
*/
summary: z.string().optional(),
/**
* A description which by default SHOULD override that of the referenced component. CommonMark syntax MAY be used for
* rich text representation. If the referenced object-type does not allow a description field, then this field has no
* effect.
*/
description: z.string().optional()
});
export {
ReferenceObjectSchema
};
//# sourceMappingURL=reference-object.js.map