-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Should CiceroMark Support optional variables? #520
Comments
This sounds like a regression. I'm pretty sure the parser generator used to handle optionals: |
This isn't related to parsing for optional, only the constraints for the new The current parsing/drafting for optional values should work but will not allow for custom text for those variables. The way I understand the issue is the ability to write something like:
|
The current optional parsing works, but I am getting another kind of error (which may be a regression, I'm actually unsure). For the model:
And the template:
And the
It parses correctly:
But for an empty address:
I get:
This should be filed as a separate bug I think. |
Hi Jerome, I think this bug occurs for simple types too - like |
In this example did you make DummyText optional? |
From @martinhalford
Support for "optional" in Concerto
The Concerto modeling language supports
optional
properties in types, which is great, as sometimes not all parameters in an agreement are mandatory.At the moment, if a property is designated as
optional
then the Cicero parser ignore it. An error is then thrown claiming that the property is missing.It would be great if Cicero parser could support optional properties in Concerto.
The text was updated successfully, but these errors were encountered: