An open-source command-line tool for reporting workflow automation and a configuration language for reusable templates. Reporting-as-Code
10
stars
0
forks
source link
Extended validation options for plugin schema #158
Closed
Andrew-Morozko closed 1 week ago
Replace a lot of custom schema validation with generic validators. In order of usefulness in our code:
validators.OneOf()
validates that the value provided is one of the given valuesvalidators.Int()
checks that the number is an integervalidators.Less
,validators.Greater
,validators.LessThanOrEqual
,validators.InRangeInclusive
- self-explanatoryvalidators.Deprecated()
produces a diagnostic warning if the value is non-null