Skip to content

Commit

Permalink
Merge pull request #1266 from danielpeintner/issue-1062
Browse files Browse the repository at this point in the history
refactor: avoid adding schemas to AJV
  • Loading branch information
relu91 authored Apr 23, 2024
2 parents f52b41e + 071eb1f commit debccce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/interaction-output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ const { debug, warn } = createLoggers("core", "interaction-output");

// Strict mode has a lot of other checks and it prevents runtime unexpected problems
// TODO: in the future we should use the strict mode
const ajv = new Ajv({ strict: false });
// addUsedSchema may cause memory leak in our use-case / environment (see https://github.com/eclipse-thingweb/node-wot/issues/1062)
const ajv = new Ajv({ strict: false, addUsedSchema: false });
addFormats(ajv);

export class InteractionOutput implements WoT.InteractionOutput {
Expand Down

0 comments on commit debccce

Please sign in to comment.