Skip to content
Discussion options

You must be logged in to vote

Hey @jindong-zhannng, basically you have two options:

  1. Keep it as it is now and add a validation that shows an error in case there is space between the @ keyword and the name property.
  2. Define a new terminal like this terminal AnnotationName: '@' ID; and use it as the name property. Make sure to override the DefaultValueConverter to remove the @ character from the parsed value.

Note that I would recommend the first approach, as it makes parsing more error tolerant, and custom validations usually lead to better error messages for end users.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jindong-zhannng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants