Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New validator for references across BC boundaries #187

Open
stefan-ka opened this issue Mar 17, 2020 · 1 comment
Open

New validator for references across BC boundaries #187

stefan-ka opened this issue Mar 17, 2020 · 1 comment

Comments

@stefan-ka
Copy link
Member

stefan-ka commented Mar 17, 2020

From a domain object in a CML model it is currently possible to reference any other domain object.

I suggest to implement a validator which ensures that references to another Bounded Context are only possible if the referenced domain object is part of an exposed Aggregate of a corresponding Context Map relationship (exposed Aggregates). In other words: a domain object reference shall only be possible if there is a relationship on the Context Map that makes the referenced object available to the context containing the reference.

(references should also be possible if there is a Shared Kernel or Partnership relationship between the contexts)

@stefan-ka
Copy link
Member Author

With v6.0.0 we have at least a warning now: https://contextmapper.org/news/2020/09/23/v6.0.0-released/

Maybe we can change to an error in a future release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant