While the base SchemaRule can do a lot, future rules may need more logic or use a different kind of schema. This will be especially important with #6 and external rules.
Wire up DI through https://github.com/ssube/noicejs and await container.create(rule.type) should solve that neatly. Rule modules can provide DI modules if they have additional Parser or Rule classes.
While the base
SchemaRulecan do a lot, future rules may need more logic or use a different kind of schema. This will be especially important with #6 and external rules.Wire up DI through https://github.com/ssube/noicejs and
await container.create(rule.type)should solve that neatly. Rule modules can provide DI modules if they have additionalParserorRuleclasses.