Declarative objects validation