'duplicate-rule-id' ​Contract 2.0.0 · package sha256
a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e· generated fromconfigurator-runtime.d.ts,tables/problems.jsonandservices/onsite-scripter/scripts/contract-docs-what-to-do.jsonbyservices/onsite-scripter/scripts/build-contract-docs.mjs; edit the source, not this file.
A member of InputErrorCode · stable · since 2.0.0
Two rules of one apply() rules list share an id (spec section 6.10, R3).
Give each rule in one session.apply({ rules }) list its own id, or leave id out.
await session.apply({ rules: [{ id: 'seat', query: { name: 'Seat' }, set: { visible: false } }, { id: 'legs', query: { name: 'Leg*' }, set: { visible: false } }] });
RuleSpec.id: Unique per owner and block: two with one id in one apply() list reject HoloInputError('duplicate-rule-id').Writer.apply: Errors: rejects HoloInputError on an invalid spec (validate('scene', spec) checks its shape and its collections' keys and parents; { dryRun: true } checks all this call checks and changes nothing), and 'duplicate-rule-id' when two of rules share an id (spec section 6.10, R3).The set is open: handle a code you don't know ('other').