UNPKG

@scalar/openapi-types

Version:
18 lines (17 loc) 982 B
import { z } from "zod"; import { BasePathItemObjectSchema as OriginalBasePathItemObjectSchema } from "../processed/base-path-item-object.js"; import { ParameterObjectSchema } from "./parameter-object.js"; import { ReferenceObjectSchema } from "./reference-object.js"; const BasePathItemObjectSchema = OriginalBasePathItemObjectSchema.extend({ /** * A list of parameters that are applicable for all the operations described under this path. These parameters can be * overridden at the operation level, but cannot be removed there. The list MUST NOT include duplicated parameters. A * unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link * to parameters that are defined at the OpenAPI Object's components/parameters. */ parameters: z.array(z.union([ReferenceObjectSchema, ParameterObjectSchema])).optional() }); export { BasePathItemObjectSchema }; //# sourceMappingURL=base-path-item-object.js.map