Skip to content

Commit

Permalink
refactor: make ignoreValidation required
Browse files Browse the repository at this point in the history
in private method only
  • Loading branch information
danielpeintner committed May 9, 2024
1 parent 8a05b90 commit f14ae6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/consumed-thing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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<WoT.PropertyReadMap> {
Expand Down

0 comments on commit f14ae6b

Please sign in to comment.