Two more oatpp 1.3 spec quirks surfaced when fewo-webapp's #469 increment 2 wired up Orval's strict Zod codegen on top of the v0.4.1 `required: []` strip: - `"type": "Any"` is emitted for `oatpp::Any` / `oatpp::Fields` fields. OpenAPI 3.0 has no "Any" type — the empty schema `{}` (or absence of `type`) is the canonical "any value" form. Strip the offending key recursively across the whole spec. - Some endpoints emit the same path parameter twice (same `name` + same `in: path`). Dedupe by `(name, in)` preserving first occurrence. These were caught only by `@scalar/openapi-parser`'s strict mode (used by Orval's Zod project); the fetch-client project tolerated them. Without both fixes, fewoZod fails with `must NOT have duplicate items` and `must match exactly one schema in oneOf` per affected component. Bumps to v0.4.2. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
67 lines
2.1 KiB
JSON
67 lines
2.1 KiB
JSON
{
|
|
"name": "@uschuster/webapp-scaffold",
|
|
"version": "0.4.2",
|
|
"description": "Shared build scripts + Vite config factories for webapp-template-derived projects.",
|
|
"type": "module",
|
|
"bin": {
|
|
"webapp-scaffold-fetch-openapi": "bin/fetch-openapi.sh",
|
|
"webapp-scaffold-postprocess-openapi": "bin/postprocess-openapi.py",
|
|
"webapp-scaffold-inject-hashes": "bin/inject-hashed-filenames.py"
|
|
},
|
|
"main": "dist/vite-config.js",
|
|
"module": "dist/vite-config.js",
|
|
"types": "dist/vite-config.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/vite-config.d.ts",
|
|
"import": "./dist/vite-config.js"
|
|
},
|
|
"./core-fetch": {
|
|
"types": "./dist/core-fetch.d.ts",
|
|
"import": "./dist/core-fetch.js"
|
|
},
|
|
"./i18n": {
|
|
"types": "./dist/i18n.d.ts",
|
|
"import": "./dist/i18n.js"
|
|
},
|
|
"./i18n-react": {
|
|
"types": "./dist/i18n-react.d.ts",
|
|
"import": "./dist/i18n-react.js"
|
|
},
|
|
"./orval-template": "./templates/orval.config.template.ts"
|
|
},
|
|
"files": ["bin/", "dist/", "src/", "templates/", "README.md", "LICENSE"],
|
|
"scripts": {
|
|
"prepare": "tsc && vitest run",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.0.0",
|
|
"@types/node": "^22.0.0",
|
|
"@types/react": "^19.0.0",
|
|
"vitest": "^2.0.0",
|
|
"jsdom": "^25.0.0",
|
|
"@testing-library/react": "^16.0.0",
|
|
"@testing-library/dom": "^10.0.0",
|
|
"@types/react-dom": "^19.0.0",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"vite": "^6.0.0",
|
|
"@vitejs/plugin-react": "^4.0.0"
|
|
},
|
|
"peerDependencies": {
|
|
"vite": "^6.0.0",
|
|
"@vitejs/plugin-react": "^4.0.0",
|
|
"react": "^19.0.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"react": { "optional": true }
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "http://127.0.0.1:3000/uwe.admin/webapp-scaffold.git"
|
|
},
|
|
"license": "UNLICENSED",
|
|
"private": true
|
|
}
|