Skip to content

Commit 7b224f4

Browse files
committed
Add JSON schema testing and revert package dependencies
This commit introduces a comprehensive set of JSON schema testing within the monorepo, specifically adding a new test project in `references/json-schema-test`. This includes a variety of schema definitions and tasks utilizing multiple validation libraries to ensure robust type-checking and runtime validation. Additionally, the dependency versions for `@effect/schema` have been adjusted from `^0.76.5` to `^0.75.5` to maintain compatibility across the project components. This ensures consistent behavior and compatibility with existing code bases without introducing breaking changes or unexpected behavior due to version discrepancies. Key updates include: - Added new test project with extensive schema validation tests. - Ensured type safety across various task implementations. - Reverted dependency versions to ensure compatibility. - Created multiple schema tasks using libraries like Zod, Yup, and others for thorough testing.
1 parent 6b1ff95 commit 7b224f4

File tree

11 files changed

+2146
-4
lines changed

11 files changed

+2146
-4
lines changed

packages/schema-to-json/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,25 +48,25 @@
4848
"@sodaru/yup-to-json-schema": "^2.0.1"
4949
},
5050
"devDependencies": {
51-
"@effect/schema": "^0.76.5",
51+
"@effect/schema": "^0.75.5",
5252
"arktype": "^2.0.0",
5353
"effect": "^3.11.11",
5454
"runtypes": "^6.7.0",
5555
"superstruct": "^2.0.2",
5656
"tshy": "^3.0.2",
57-
"typebox": "^0.34.3",
57+
"@sinclair/typebox": "^0.34.3",
5858
"valibot": "^1.0.0-beta.8",
5959
"vitest": "^2.1.8",
6060
"yup": "^1.6.1",
6161
"zod": "^3.24.1 || ^4.0.0"
6262
},
6363
"peerDependencies": {
64-
"@effect/schema": "^0.76.5",
64+
"@effect/schema": "^0.75.5",
6565
"arktype": "^2.0.0",
6666
"effect": "^3.11.11",
6767
"runtypes": "^6.7.0",
6868
"superstruct": "^2.0.2",
69-
"typebox": "^0.34.3",
69+
"@sinclair/typebox": "^0.34.3",
7070
"valibot": "^1.0.0-beta.8",
7171
"yup": "^1.6.1",
7272
"zod": "^3.24.1 || ^4.0.0"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "json-schema-test",
3+
"version": "1.0.0",
4+
"description": "Test project for JSON schema functionality",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "trigger.dev@beta dev",
8+
"trigger:deploy": "trigger.dev@beta deploy",
9+
"typecheck": "tsc --noEmit"
10+
},
11+
"dependencies": {
12+
"@trigger.dev/sdk": "workspace:*",
13+
"zod": "3.22.3"
14+
},
15+
"devDependencies": {
16+
"@types/node": "^20.14.8",
17+
"typescript": "^5.7.2"
18+
}
19+
}

0 commit comments

Comments
 (0)