@tadnt2003/n8n-nodes-infisical 0.3.7 → 0.3.8
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/dist/utils/syncOperations.js +10 -9
- package/package.json +1 -1
|
@@ -269,18 +269,19 @@ function coerceValue(raw, def) {
|
|
|
269
269
|
//
|
|
270
270
|
// When condKey IS in schema properties, fire only when the current value matches condValues.
|
|
271
271
|
//
|
|
272
|
-
// When condKey is NOT in schema properties (e.g. useDynamicClientRegistration on
|
|
273
|
-
// googleOAuth2Api), JSON Schema evaluates the if-clause vacuously
|
|
274
|
-
//
|
|
275
|
-
//
|
|
276
|
-
//
|
|
277
|
-
//
|
|
278
|
-
//
|
|
279
|
-
//
|
|
272
|
+
// When condKey is NOT in schema properties (e.g. useDynamicClientRegistration or grantType on
|
|
273
|
+
// googleOAuth2Api / googleSheetsOAuth2Api), JSON Schema evaluates the if-clause vacuously:
|
|
274
|
+
// the `properties` keyword only constrains keys that ARE present, so an absent key always
|
|
275
|
+
// satisfies the constraint. The if-clause passes → then fires (else never fires) for every
|
|
276
|
+
// such branch, regardless of condValues. n8n's own schema validator follows this standard
|
|
277
|
+
// JSON Schema behaviour — when useDynamicClientRegistration is absent, BOTH the [true] and
|
|
278
|
+
// [false] allOf branches fire, requiring serverUrl AND clientId/clientSecret simultaneously.
|
|
279
|
+
// We mirror that by always returning true for vacuous-truth branches.
|
|
280
280
|
function conditionFires(condKeyInSchema, condValues, condVal) {
|
|
281
281
|
if (condKeyInSchema)
|
|
282
282
|
return condValues.includes(condVal);
|
|
283
|
-
|
|
283
|
+
// Vacuous truth: absent key → if always passes → then always fires.
|
|
284
|
+
return true;
|
|
284
285
|
}
|
|
285
286
|
// Validate credential data against the n8n schema's required fields and conditional requirements.
|
|
286
287
|
// For form mode, pass availableFormFields to skip checks for fields the form cannot provide.
|