@launchdarkly/mcp-server
Version:
The local [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server for [LaunchDarkly](https://launchdarkly.com/) federal and European Union (EU) environments.
23 lines • 973 B
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
import { PatchOperation$inboundSchema, PatchOperation$outboundSchema, } from "./patchoperation.js";
/** @internal */
export const PatchWithComment$inboundSchema = z.object({
patch: z.array(PatchOperation$inboundSchema),
comment: z.string().optional(),
});
/** @internal */
export const PatchWithComment$outboundSchema = z.object({
patch: z.array(PatchOperation$outboundSchema),
comment: z.string().optional(),
});
export function patchWithCommentToJSON(patchWithComment) {
return JSON.stringify(PatchWithComment$outboundSchema.parse(patchWithComment));
}
export function patchWithCommentFromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchWithComment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchWithComment' from JSON`);
}
//# sourceMappingURL=patchwithcomment.js.map