From 498202b9b1caf522fb48f07517633c9708085c37 Mon Sep 17 00:00:00 2001 From: Steve Konves Date: Mon, 19 Jun 2023 13:46:15 -0700 Subject: [PATCH] fix: ensure sourcePath always matches input --- src/engine.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine.ts b/src/engine.ts index 3a84366..4b90235 100644 --- a/src/engine.ts +++ b/src/engine.ts @@ -566,7 +566,9 @@ function runParser(options: { }); push(errors, validation.errors); - value = validation.service; + value = validation.service + ? { ...validation.service, sourcePath } + : undefined; } catch (ex) { errors.push({ code: 'PARSER_ERROR',