Skip to content

Commit

Permalink
chore: stub "ignoreSrdActivities" support
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGiddyLimit committed Dec 19, 2024
1 parent d042aa6 commit 866d5f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions module/js/integrations/IntegrationBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ export class IntegrationBase {
if (!Object.keys(json).length) return null;
// Implicitly override SRD effects if an integration has effects, as we assume they bring their own
if (json.effects?.length) json.ignoreSrdEffects = true;
// Ditto for activities
if (Object.keys(json.system?.activities || {}).length) json.ignoreSrdActivities = true;
return json;
}
}
3 changes: 2 additions & 1 deletion test/schema/shared.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "shared.json",
"version": "0.7.2",
"version": "0.7.3",

"$defs": {
"schema": {
Expand Down Expand Up @@ -227,6 +227,7 @@
"additionalProperties": false
},

"ignoreSrdActivities": {"type": "boolean"},
"ignoreSrdEffects": {"type": "boolean"},

"_merge": {
Expand Down

0 comments on commit 866d5f6

Please sign in to comment.