public void Validate()

in openapi-diff/src/core/OpenApiDiff.Core/Settings.cs [228:251]


        public void Validate()
        {
            foreach (PropertyInfo property in (typeof(Settings)).GetProperties())
            {
                // If property value is not set - throw exception.
                var doc = property.GetCustomAttributes<SettingsInfoAttribute>().FirstOrDefault();
                if (doc != null && doc.IsRequired && property.GetValue(this) == null)
                {
                    Console.WriteLine(String.Format(Resources.ParameterValueIsMissing, property.Name));
                    throw new Exception(string.Format(Resources.ParameterValueIsMissing, property.Name));
                }
            }

            // Validate input Files
            if (!File.Exists(Instance.OldSpec))
            {
                throw new Exception(String.Format(Resources.InputMustBeAFile, "-old"));
            }

            if (!File.Exists(Instance.NewSpec))
            {
                throw new Exception(String.Format(Resources.InputMustBeAFile, "-new"));
            }
        }