windmill-cli 1.601.1 → 1.602.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/esm/gen/core/OpenAPI.js +1 -1
- package/esm/src/main.js +1 -1
- package/esm/wasm/py/windmill_parser_wasm_bg.wasm +0 -0
- package/esm/windmill-utils-internal/src/parse/parse-schema.js +29 -3
- package/package.json +1 -1
- package/types/gen/types.gen.d.ts +1 -0
- package/types/gen/types.gen.d.ts.map +1 -1
- package/types/src/main.d.ts +1 -1
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts +1 -0
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts.map +1 -1
- package/types/windmill-utils-internal/src/parse/parse-schema.d.ts.map +1 -1
package/esm/gen/core/OpenAPI.js
CHANGED
package/esm/src/main.js
CHANGED
|
@@ -40,7 +40,7 @@ export { flow, app, script, workspace, resource, resourceType, user, variable, h
|
|
|
40
40
|
// console.error(JSON.stringify(event.error, null, 4));
|
|
41
41
|
// }
|
|
42
42
|
// });
|
|
43
|
-
export const VERSION = "1.
|
|
43
|
+
export const VERSION = "1.602.0";
|
|
44
44
|
// Re-exported from constants.ts to maintain backwards compatibility
|
|
45
45
|
export { WM_FORK_PREFIX } from "./core/constants.js";
|
|
46
46
|
const command = new Command()
|
|
Binary file
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
const ITEMS_PRESERVED_FIELDS = [
|
|
2
|
+
"properties",
|
|
3
|
+
"required",
|
|
4
|
+
"additionalProperties",
|
|
5
|
+
"enum",
|
|
6
|
+
"resourceType",
|
|
7
|
+
"contentEncoding",
|
|
8
|
+
"description",
|
|
9
|
+
];
|
|
1
10
|
/**
|
|
2
11
|
* Converts argument signature types to JSON schema properties.
|
|
3
12
|
* This function handles various Windmill-specific types and converts them
|
|
@@ -156,17 +165,34 @@ export function argSigToJsonSchemaType(t, oldS) {
|
|
|
156
165
|
newS.items = { type: "object", properties: properties };
|
|
157
166
|
}
|
|
158
167
|
else {
|
|
159
|
-
|
|
168
|
+
// Preserve ALL user-defined fields when parser cannot infer structure
|
|
169
|
+
newS.items = { type: oldS.items?.type || "object" };
|
|
170
|
+
if (oldS.items && typeof oldS.items === "object") {
|
|
171
|
+
ITEMS_PRESERVED_FIELDS.forEach((field) => {
|
|
172
|
+
if (oldS.items && oldS.items[field] !== undefined) {
|
|
173
|
+
newS.items[field] = oldS.items[field];
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
}
|
|
160
177
|
}
|
|
161
178
|
newS.originalType = "record[]";
|
|
162
179
|
}
|
|
163
180
|
else {
|
|
164
|
-
|
|
181
|
+
// Preserve ALL user-defined fields for untyped lists (same as record[] branch)
|
|
182
|
+
newS.items = { type: oldS.items?.type || "object" };
|
|
183
|
+
if (oldS.items && typeof oldS.items === "object") {
|
|
184
|
+
ITEMS_PRESERVED_FIELDS.forEach((field) => {
|
|
185
|
+
if (oldS.items && oldS.items[field] !== undefined) {
|
|
186
|
+
newS.items[field] = oldS.items[field];
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
}
|
|
165
190
|
newS.originalType = "object[]";
|
|
166
191
|
}
|
|
167
192
|
}
|
|
168
193
|
else {
|
|
169
|
-
|
|
194
|
+
// Preserve existing type when inference fails, default to "object" for undefined/null
|
|
195
|
+
newS.type = oldS.type ?? "object";
|
|
170
196
|
}
|
|
171
197
|
const preservedFields = [
|
|
172
198
|
"description",
|
package/package.json
CHANGED