Given the next code:
from cerberus import Validator
v = Validator({
'id': {'type': 'integer', 'readonly': True},
})
v.validate({'id': 1}) # False
v.validate({'id': 1}) # True
v.validate({'id': 1}) # True
v.validate({'id': 1}) # True
Just the first call validates correctly and return False. The subsequent calls to validate(...) return True. This just happen to me with property readonly. It looks like the validation works just on time.
Is this an intentional behavior of this library?
Given the next code:
Just the first call validates correctly and return
False. The subsequent calls tovalidate(...)return True. This just happen to me with propertyreadonly. It looks like the validation works just on time.Is this an intentional behavior of this library?