Validate duration literals #4800
Labels
backlog
Queued in backlog
enhancement
New feature or request
good first issue
Good for newcomers
spring cleaning
Could be cleaned up one day
ux
Problem you would like to solve
It is absolutely frustrating when you get a runtime error for incorrect duration value, e.g.
duration("PTS15")
. One needs to be an ISO8601 expert to spot the problem here.Proposed solution
Validate this! We can easily validate the
duration("...")
string literal part with a regex. We already do that in in dmn-js, so why don't we do that everywhere? This should be implemented at feel-lint level as it supports any FEEL editor user.This will support "Editors, not
drawingwriting tools".Alternatives considered
Do nothing and let the users suffer.
Additional context
This conversation: https://camunda.slack.com/archives/C057H178R9T/p1737455728395989
The text was updated successfully, but these errors were encountered: