Skip to content

Commit f14ae6b

Browse files
refactor: make ignoreValidation required
in private method only
1 parent 8a05b90 commit f14ae6b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/core/src/consumed-thing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ export default class ConsumedThing extends TD.Thing implements IConsumedThing {
569569
content: Content,
570570
form: TD.Form,
571571
outputDataSchema: WoT.DataSchema | undefined,
572-
ignoreValidation: boolean | undefined
572+
ignoreValidation: boolean
573573
): InteractionOutput {
574574
// infer media type from form if not in response metadata
575575
content.type ??= form.contentType ?? "application/json";
@@ -584,7 +584,7 @@ export default class ConsumedThing extends TD.Thing implements IConsumedThing {
584584
);
585585
}
586586
}
587-
return new InteractionOutput(content, form, outputDataSchema, { ignoreValidation: ignoreValidation ?? false });
587+
return new InteractionOutput(content, form, outputDataSchema, { ignoreValidation });
588588
}
589589

590590
async _readProperties(propertyNames: string[]): Promise<WoT.PropertyReadMap> {

0 commit comments

Comments
 (0)