mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 16:02:14 +00:00
7877999f3d
* fix(schema): preserve user-defined JSON schema for Python list[dict] Fixes issue where JSON schema properties manually defined in the UI are lost when saving Python scripts with list[dict] or untyped array parameters. Changes: - Preserve all items fields (properties, required, additionalProperties, etc.) - Preserve items.type instead of hardcoding "object" - Preserve type for untyped parameters using nullish coalescing - Add type safety check for items preservation The Python parser cannot infer object properties from list[dict] annotations. This fix preserves user-defined schema fields when parser cannot infer structure. Fixes #7209 * fix(schema): preserve all fields for untyped lists, not just properties Address bot feedback for consistency. The untyped list branch now preserves all user-defined fields (required, additionalProperties, enum, etc.) just like the record[] branch, instead of only preserving properties. This ensures users who define required fields or enum values for untyped list parameters don't lose that data on save. Related to #7209 * nits and publish --------- Co-authored-by: Devdatta Talele <devtalele0@gmail.com>
25 lines
566 B
JSON
25 lines
566 B
JSON
{
|
|
"name": "windmill-utils-internal",
|
|
"version": "1.3.2",
|
|
"description": "Internal utility functions for Windmill",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"scripts": {
|
|
"dev": "./gen_wm_client.sh && ./remove-ts-ext.sh",
|
|
"build": "./gen_wm_client.sh && ./remove-ts-ext.sh && tsc",
|
|
"prepublishOnly": "npm run build"
|
|
},
|
|
"keywords": [
|
|
"windmill"
|
|
],
|
|
"author": "Ruben Fiszel",
|
|
"license": "Apache 2.0",
|
|
"devDependencies": {
|
|
"@types/node": "^24.2.0",
|
|
"typescript": "^5.0.0"
|
|
},
|
|
"files": [
|
|
"dist/**/*"
|
|
]
|
|
}
|