MCPcopy Create free account
hub / github.com/microsoft/TypeChat / validate

Method validate

typescript/src/typechat.ts:85–85  ·  view source on GitHub ↗

* Validates the given JSON object according to the associated TypeScript schema. Returns a * `Success ` object containing the JSON object if validation was successful. Otherwise, returns * an `Error` object with a `message` property describing the error. * @param jsonText The JSON o

(jsonObject: object)

Source from the content-addressed store, hash-verified

83 * @returns The JSON object or an error message.
84 */
85 validate(jsonObject: object): Result<T>;
86}
87
88/**

Callers 3

zod.test.tsFile · 0.80
validate.test.tsFile · 0.80
translateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected