From f14ae6b500c2c98d4d4aaecf4e0b2254c83a3040 Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Thu, 9 May 2024 14:53:31 +0200 Subject: [PATCH] refactor: make ignoreValidation required in private method only --- packages/core/src/consumed-thing.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/consumed-thing.ts b/packages/core/src/consumed-thing.ts index 6b77e3a7c..8c03f3938 100644 --- a/packages/core/src/consumed-thing.ts +++ b/packages/core/src/consumed-thing.ts @@ -569,7 +569,7 @@ export default class ConsumedThing extends TD.Thing implements IConsumedThing { content: Content, form: TD.Form, outputDataSchema: WoT.DataSchema | undefined, - ignoreValidation: boolean | undefined + ignoreValidation: boolean ): InteractionOutput { // infer media type from form if not in response metadata content.type ??= form.contentType ?? "application/json"; @@ -584,7 +584,7 @@ export default class ConsumedThing extends TD.Thing implements IConsumedThing { ); } } - return new InteractionOutput(content, form, outputDataSchema, { ignoreValidation: ignoreValidation ?? false }); + return new InteractionOutput(content, form, outputDataSchema, { ignoreValidation }); } async _readProperties(propertyNames: string[]): Promise {