@cerios/openapi-to-zod 1.1.0 → 1.2.0
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/README.md +209 -28
- package/dist/cli.js +245 -80
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +246 -81
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +209 -77
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +209 -77
- package/dist/index.mjs.map +1 -1
- package/dist/internal.d.mts +34 -19
- package/dist/internal.d.ts +34 -19
- package/dist/internal.js +106 -50
- package/dist/internal.js.map +1 -1
- package/dist/internal.mjs +104 -50
- package/dist/internal.mjs.map +1 -1
- package/dist/{types-B7ePTDjr.d.mts → types--r0d47sd.d.mts} +86 -8
- package/dist/{types-B7ePTDjr.d.ts → types--r0d47sd.d.ts} +86 -8
- package/package.json +105 -102
package/package.json
CHANGED
|
@@ -1,102 +1,105 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@cerios/openapi-to-zod",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"author": "Ronald Veth - Cerios",
|
|
5
|
-
"description": "Generate Zod schemas from OpenAPI specifications. A TypeScript code generator that converts OpenAPI/Swagger YAML definitions into type-safe Zod validation schemas.",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
"types": "./dist/index.d.
|
|
38
|
-
"default": "./dist/index.
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
"types": "./dist/internal.d.
|
|
48
|
-
"default": "./dist/internal.
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
"@
|
|
88
|
-
"@
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"zod": "^4.
|
|
101
|
-
}
|
|
102
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@cerios/openapi-to-zod",
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"author": "Ronald Veth - Cerios",
|
|
5
|
+
"description": "Generate Zod schemas from OpenAPI specifications. A TypeScript code generator that converts OpenAPI/Swagger YAML definitions into type-safe Zod validation schemas.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public",
|
|
9
|
+
"provenance": true
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"zod",
|
|
13
|
+
"openapi",
|
|
14
|
+
"validation",
|
|
15
|
+
"typescript",
|
|
16
|
+
"schema",
|
|
17
|
+
"generator",
|
|
18
|
+
"api",
|
|
19
|
+
"yaml",
|
|
20
|
+
"codegen",
|
|
21
|
+
"cerios"
|
|
22
|
+
],
|
|
23
|
+
"bin": {
|
|
24
|
+
"openapi-to-zod": "./dist/cli.js"
|
|
25
|
+
},
|
|
26
|
+
"main": "./dist/index.js",
|
|
27
|
+
"module": "./dist/index.mjs",
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"files": [
|
|
30
|
+
"dist"
|
|
31
|
+
],
|
|
32
|
+
"type": "commonjs",
|
|
33
|
+
"sideEffects": false,
|
|
34
|
+
"exports": {
|
|
35
|
+
".": {
|
|
36
|
+
"import": {
|
|
37
|
+
"types": "./dist/index.d.mts",
|
|
38
|
+
"default": "./dist/index.mjs"
|
|
39
|
+
},
|
|
40
|
+
"require": {
|
|
41
|
+
"types": "./dist/index.d.ts",
|
|
42
|
+
"default": "./dist/index.js"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"./internal": {
|
|
46
|
+
"import": {
|
|
47
|
+
"types": "./dist/internal.d.mts",
|
|
48
|
+
"default": "./dist/internal.mjs"
|
|
49
|
+
},
|
|
50
|
+
"require": {
|
|
51
|
+
"types": "./dist/internal.d.ts",
|
|
52
|
+
"default": "./dist/internal.js"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"./package.json": "./package.json"
|
|
56
|
+
},
|
|
57
|
+
"bugs": {
|
|
58
|
+
"url": "https://github.com/CeriosTesting/openapi-to-zod/issues"
|
|
59
|
+
},
|
|
60
|
+
"homepage": "https://github.com/CeriosTesting/openapi-to-zod#readme",
|
|
61
|
+
"repository": {
|
|
62
|
+
"type": "git",
|
|
63
|
+
"url": "git+https://github.com/CeriosTesting/openapi-to-zod.git"
|
|
64
|
+
},
|
|
65
|
+
"scripts": {
|
|
66
|
+
"biome:migrate": "biome migrate --write",
|
|
67
|
+
"build": "tsup",
|
|
68
|
+
"changeset": "npx changeset",
|
|
69
|
+
"check": "biome check --write",
|
|
70
|
+
"check-exports": "attw --pack .",
|
|
71
|
+
"compile": "tsc --noEmit",
|
|
72
|
+
"dev": "tsup --watch",
|
|
73
|
+
"lint": "biome lint",
|
|
74
|
+
"pack": "npm pack --pack-destination=../..",
|
|
75
|
+
"test": "vitest run",
|
|
76
|
+
"test:generate": "node dist/cli.js -i src/phx-case-management-api.openapi.yaml -o output/schemas.ts",
|
|
77
|
+
"update-all-packages": "npx npm-check-updates -u && npm i"
|
|
78
|
+
},
|
|
79
|
+
"dependencies": {
|
|
80
|
+
"commander": "^14.0.2",
|
|
81
|
+
"cosmiconfig": "^9.0.0",
|
|
82
|
+
"esbuild": "^0.27.1",
|
|
83
|
+
"minimatch": "^10.1.1",
|
|
84
|
+
"yaml": "^2.8.2"
|
|
85
|
+
},
|
|
86
|
+
"devDependencies": {
|
|
87
|
+
"@arethetypeswrong/cli": "^0.18.2",
|
|
88
|
+
"@biomejs/biome": "2.3.9",
|
|
89
|
+
"@changesets/cli": "^2.29.8",
|
|
90
|
+
"@types/node": "^25.0.2",
|
|
91
|
+
"@types/prompts": "^2.4.9",
|
|
92
|
+
"husky": "^9.1.7",
|
|
93
|
+
"lint-staged": "^16.2.7",
|
|
94
|
+
"npm-check-updates": "^19.2.0",
|
|
95
|
+
"prompts": "^2.4.2",
|
|
96
|
+
"tsup": "^8.5.1",
|
|
97
|
+
"tsx": "^4.21.0",
|
|
98
|
+
"typescript": "^5.9.3",
|
|
99
|
+
"vitest": "^4.0.15",
|
|
100
|
+
"zod": "^4.2.0"
|
|
101
|
+
},
|
|
102
|
+
"peerDependencies": {
|
|
103
|
+
"zod": "^4.0.0"
|
|
104
|
+
}
|
|
105
|
+
}
|