adds schema and validation example