Skip to content

Commit c947262

Browse files
committed
feat: OpenAPI Overlay 1.1.0
1 parent 3738b91 commit c947262

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

utils/overlay.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,10 @@ function applyCopyAction({root, target, from, actionLabel}) {
255255

256256
function applyValueByTargetType({targetValue, incomingValue, mode, actionLabel}) {
257257
if (Array.isArray(targetValue)) {
258+
const incomingArray = Array.isArray(incomingValue) ? incomingValue : [incomingValue];
258259
return {
259260
ok: true,
260-
value: [...targetValue, cloneJsonLike(incomingValue)]
261+
value: [...targetValue, ...cloneJsonLike(incomingArray)]
261262
};
262263
}
263264

0 commit comments

Comments
 (0)