Restrict / Validate deserialized values #123
Labels
Comp: Core
Core functionality of ngqp
Priority: Medium
Users can work without this for now, but this should be fixed soon-ish
Status: Needs Design
There is no clear API for this feature yet and one should be designed before work on ican be started
Type: Feature
If you want to add something that doesn't exist yet
What's your idea?
A common use-case is that there's only a discrete set of possible values for a parameter, but validating this is currently only possible by providing a custom deserializer which can then convert invalid values into some fallback value or similar.
We should evaluate whether a more direct approach for this could be useful, and if so, what it could look like. Some ideas:
restrictTo
kind of option which requires & uses the already existingcompareWith
functionThe text was updated successfully, but these errors were encountered: