-
Notifications
You must be signed in to change notification settings - Fork 119
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
Variables within #optional body are reported as unknown #680
Comments
The background for this is that I am currently evaluating the use of Accord for International Data Spaces IDS Data Usage Contracts, see https://internationaldataspaces.org/. |
Hi @norweis, When you write an optional block:
This changes what variables are in scope for the content of that block:
So in the case where
For a complex type though you would most likely write something like this:
Assuming
|
Thank you. It works. But it is not documented. |
A small error remains: Unknown property: name File text/grammar.tem.md line -1 column -1": |
This issue isn't about template studio. Moving it to Cicero, more relevant. |
In the Contract Grammar field, variables within #optional body are reported as unknown. E.g. (with "String name optional" in a model), the following reports: "Unknown property: name File text/grammar.tem.md line -1 column -1":
No variables are evaluated within the #optional Body.
Expected Behavior
In https://docs.accordproject.org/docs/markup-templatemark.html#optional-blocks a similar sample is used, but it does not work. Expected behavior is that if name is set in ContractData to value x, then Name: x should be displayed.
Current Behavior
False error message: "Unknown property: name File text/grammar.tem.md line -1 column -1".
It also contains wrong line and column.
Steps to Reproduce
Context (Environment)
It occurs in any context (Browser, OS, ...) in latest Accord Studio.
The text was updated successfully, but these errors were encountered: