Feature #22253

Extend option validators to validate resolved options

Added by Martin Bacovsky 6 months ago. Updated 6 months ago.

Category:Hammer core
Target version:-
Difficulty: Team Backlog:
Triaged: Fixed in Releases:
Bugzilla link: Found in Releases:
Pull request:


Implementation idea would be:
- validation object instead of block
- possibility to use it during option collecting in selected order
- get partially collected options as an input


#1 Updated by Martin Bacovsky 6 months ago

  • Category set to Hammer core

#3 Updated by Tomáš Strachota 6 months ago

I'll add a few comments:
  • Validation objects should be kept in the same array as option sources to enable mixing them and validating some options before a certain option source is executed.
  • The current 'validate_options' block should be silently translated to a validation object to keep backward compatibility while being consistent in how we do validations.

Also available in: Atom PDF