Open Nagelfar opened 3 years ago
Hi! :wave:
It looks like, that option 2 is implemented, but I can't change the default configuration. I think, limiting the nesting depth is a good idea, but the default value of 1 is quite low. Therefore, I tried to change it to 2, but the changed configuration value is not recognized by contexture.
Content of my env file:
VITE_CONTEXTURE_MAX_SUBDOMAINS_NESTING_LEVEL=2 VUE_CONTEXTURE_MAX_SUBDOMAINS_NESTING_LEVEL=2 CONTEXTURE_MAX_SUBDOMAINS_NESTING_LEVEL=2
(I made the different prefixes to be sure, that I'm not missing something)
In the current version of Contexture it is possible to nest Domain/Sub-Domains without any restriction. But for a lot of systems it's enough to have domains and sub-domains as the only way to structure their bounded contexts.
To reduce complexity for the users either 1) limit the nesting depth to domains/sub-domains 2) introduce a configuration to limit nesting depth to a certain level (e.g. 2 levels - domains/sub-domain/sub-domain)
Option 1) will be easier to implement, document and maintain. But it could limit the usefulness of Contexture for some users.