Resource should not validate when schema is null.