From a085a22a2b429bda17a87e8ee7c3180b465387f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miles=20St=C3=B6tzner?= Date: Thu, 26 Dec 2024 17:14:02 +0100 Subject: [PATCH] fix trageted input (#460) --- src/resolver/validator.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/resolver/validator.ts b/src/resolver/validator.ts index 7e95b0b41..9528ff679 100644 --- a/src/resolver/validator.ts +++ b/src/resolver/validator.ts @@ -79,7 +79,10 @@ export default class Validator { * Required Constraint: input is required if not targeted by any dependency */ if (!this.isTargeted(name, inputs)) { - this.minisat.require(name) + const value = + this.inputs[name] ?? + this.graph.serviceTemplate.topology_template?.variability?.inputs?.[name]?.default + assert.isDefined(value, `Variability input "${name}" is not targeted and not assigned`) } /**