-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add Constraint AASd-133 in SpecificAssetId #147
Add Constraint AASd-133 in SpecificAssetId #147
Conversation
Check if external_subject_id is ExternalReference
This constraint was already enforced by the typechecker, as we declare the type as |
Also, you probably mean #145 don't you? |
I think we should check it explicitly, since the type checker only analyzes the code statically, whereas this implementation also ensures correctness during runtime. |
Looks good to me. I'll rebase if you say it's ready. |
@s-heppner it's ready |
We should stay consistent though. We don't verify any other types because the typechecker does it for us. Everything that can be verified by the typechecker is currently only verified by the typechecker and not at runtime. If a variable is declared as a certain type, we always assume that the variable is of the declared type. Why shouldn't we do it in this case? |
We decided not to implement the check for reasons of consistency. However, we leave the documentation that this constraint exists. |
Check if external_subject_id is ExternalReference
fixes #145