@tsed/cli-mcp 7.5.0-rc.9 → 7.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/utils/toZod.js +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/types/fn/defineTool.d.ts +2 -2
- package/package.json +5 -7
- package/lib/esm/utils/json-schema-to-zod/Types.js +0 -1
- package/lib/esm/utils/json-schema-to-zod/cli.js +0 -74
- package/lib/esm/utils/json-schema-to-zod/index.js +0 -25
- package/lib/esm/utils/json-schema-to-zod/jsonSchemaToZod.js +0 -43
- package/lib/esm/utils/json-schema-to-zod/parsers/parseAllOf.js +0 -37
- package/lib/esm/utils/json-schema-to-zod/parsers/parseAnyOf.js +0 -11
- package/lib/esm/utils/json-schema-to-zod/parsers/parseArray.js +0 -16
- package/lib/esm/utils/json-schema-to-zod/parsers/parseBoolean.js +0 -3
- package/lib/esm/utils/json-schema-to-zod/parsers/parseConst.js +0 -3
- package/lib/esm/utils/json-schema-to-zod/parsers/parseDefault.js +0 -3
- package/lib/esm/utils/json-schema-to-zod/parsers/parseEnum.js +0 -15
- package/lib/esm/utils/json-schema-to-zod/parsers/parseIfThenElse.js +0 -20
- package/lib/esm/utils/json-schema-to-zod/parsers/parseMultipleType.js +0 -4
- package/lib/esm/utils/json-schema-to-zod/parsers/parseNot.js +0 -7
- package/lib/esm/utils/json-schema-to-zod/parsers/parseNull.js +0 -3
- package/lib/esm/utils/json-schema-to-zod/parsers/parseNullable.js +0 -8
- package/lib/esm/utils/json-schema-to-zod/parsers/parseNumber.js +0 -46
- package/lib/esm/utils/json-schema-to-zod/parsers/parseObject.js +0 -171
- package/lib/esm/utils/json-schema-to-zod/parsers/parseOneOf.js +0 -34
- package/lib/esm/utils/json-schema-to-zod/parsers/parseSchema.js +0 -138
- package/lib/esm/utils/json-schema-to-zod/parsers/parseString.js +0 -57
- package/lib/esm/utils/json-schema-to-zod/utils/cliTools.js +0 -99
- package/lib/esm/utils/json-schema-to-zod/utils/half.js +0 -3
- package/lib/esm/utils/json-schema-to-zod/utils/jsdocs.js +0 -12
- package/lib/esm/utils/json-schema-to-zod/utils/omit.js +0 -6
- package/lib/esm/utils/json-schema-to-zod/utils/withMessage.js +0 -19
- package/lib/types/utils/json-schema-to-zod/Types.d.ts +0 -68
- package/lib/types/utils/json-schema-to-zod/cli.d.ts +0 -2
- package/lib/types/utils/json-schema-to-zod/index.d.ts +0 -25
- package/lib/types/utils/json-schema-to-zod/jsonSchemaToZod.d.ts +0 -2
- package/lib/types/utils/json-schema-to-zod/parsers/parseAllOf.d.ts +0 -4
- package/lib/types/utils/json-schema-to-zod/parsers/parseAnyOf.d.ts +0 -4
- package/lib/types/utils/json-schema-to-zod/parsers/parseArray.d.ts +0 -4
- package/lib/types/utils/json-schema-to-zod/parsers/parseBoolean.d.ts +0 -4
- package/lib/types/utils/json-schema-to-zod/parsers/parseConst.d.ts +0 -4
- package/lib/types/utils/json-schema-to-zod/parsers/parseDefault.d.ts +0 -2
- package/lib/types/utils/json-schema-to-zod/parsers/parseEnum.d.ts +0 -4
- package/lib/types/utils/json-schema-to-zod/parsers/parseIfThenElse.d.ts +0 -6
- package/lib/types/utils/json-schema-to-zod/parsers/parseMultipleType.d.ts +0 -4
- package/lib/types/utils/json-schema-to-zod/parsers/parseNot.d.ts +0 -4
- package/lib/types/utils/json-schema-to-zod/parsers/parseNull.d.ts +0 -4
- package/lib/types/utils/json-schema-to-zod/parsers/parseNullable.d.ts +0 -7
- package/lib/types/utils/json-schema-to-zod/parsers/parseNumber.d.ts +0 -4
- package/lib/types/utils/json-schema-to-zod/parsers/parseObject.d.ts +0 -4
- package/lib/types/utils/json-schema-to-zod/parsers/parseOneOf.d.ts +0 -4
- package/lib/types/utils/json-schema-to-zod/parsers/parseSchema.d.ts +0 -46
- package/lib/types/utils/json-schema-to-zod/parsers/parseString.d.ts +0 -4
- package/lib/types/utils/json-schema-to-zod/utils/cliTools.d.ts +0 -28
- package/lib/types/utils/json-schema-to-zod/utils/half.d.ts +0 -1
- package/lib/types/utils/json-schema-to-zod/utils/jsdocs.d.ts +0 -3
- package/lib/types/utils/json-schema-to-zod/utils/omit.d.ts +0 -1
- package/lib/types/utils/json-schema-to-zod/utils/withMessage.d.ts +0 -10
package/lib/esm/utils/toZod.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JsonSchema } from "@tsed/schema";
|
|
2
|
+
import { jsonSchemaToZod } from "json-schema-to-zod";
|
|
2
3
|
import { z } from "zod";
|
|
3
|
-
import { jsonSchemaToZod } from "./json-schema-to-zod/index.js";
|
|
4
4
|
function transform(schema) {
|
|
5
5
|
return eval(`(z) => ${jsonSchemaToZod(schema.toJSON(), { zodVersion: 4 })}`)(z);
|
|
6
6
|
}
|