windmill-components 1.82.10 → 1.82.11
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/infer.js +3 -1
- package/package.json +1 -1
package/infer.js
CHANGED
|
@@ -122,12 +122,14 @@ function argSigToJsonSchemaType(t, oldS) {
|
|
|
122
122
|
}
|
|
123
123
|
if (oldS.type != newS.type) {
|
|
124
124
|
for (const prop of Object.getOwnPropertyNames(newS)) {
|
|
125
|
-
if (prop !=
|
|
125
|
+
if (prop != 'description') {
|
|
126
126
|
delete oldS[prop];
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
+
let oldDescription = oldS.description;
|
|
130
131
|
Object.assign(oldS, newS);
|
|
132
|
+
oldS.description = oldDescription;
|
|
131
133
|
if (oldS.format?.startsWith('resource-') && newS.type != 'object') {
|
|
132
134
|
oldS.format = undefined;
|
|
133
135
|
}
|