Closed Bascy closed 1 year ago
It's a little verbose, but this is how you'd define that:
IntegerMonitor: any(include('min_required'), include('max_required'))
---
min_required:
message: str()
minValue: int()
maxValue: int(required=False)
max_required:
message: str()
minValue: int(required=False)
maxValue: int()
Thanks
I have a yaml structure that contains 2 optional properties. Like:
How can I specify that at least on of
minValue
ormaxValue
needs to be present?