import { createSchemaObject, CreateSchemaType } from '../types'; const schema = { type: 'object', required: ['path', 'op'], properties: { path: { type: 'string', }, op: { type: 'string', enum: ['add', 'remove', 'replace', 'copy', 'move'], }, from: { type: 'string', }, value: {}, }, 'components/schemas': {}, } as const; export type PatchOperationSchema = CreateSchemaType; export const patchOperationSchema = createSchemaObject(schema);