diff --git a/lib/schema/validate.js b/lib/schema/validate.js index dd11244..9e8389b 100644 --- a/lib/schema/validate.js +++ b/lib/schema/validate.js @@ -236,7 +236,7 @@ const validatePayload = async ({ Object.entries(payloads).forEach(([fileName, payload]) => { const { version } = getResourceAndVersion({ payload, version: DEFAULT_DD_VERSION }); if (createReports) { - if (!payloadAccumulator) payloadAccumulator = payload; + if (!payloadAccumulator) payloadAccumulator = normalizePayload(payload); else payloadAccumulator.value = payloadAccumulator.value.concat(normalizePayload(payload).value); } errorMap = validate({