M-Files / VAF.Extensions.Community

Community-built .NET extension methods for use with the M-Files Vault Application Framework.
MIT License
25 stars 20 forks source link

Should the configuration upgrading leave default configuration values with IsRequired = true? #116

Closed CraigHawker closed 1 year ago

CraigHawker commented 1 year ago

Consider the below configuration:

       [DataMember]
       [JsonConfEditor(Label = "Test bool", IsRequired = true)]
       public bool TestBool { get; set; }

When the configured value is set to false, validation passes. When the vault is restarted, the false value is removed and the validation then fails.

Is it valid to ignore these items?