VAF Configuration Problem

I have made an application with VAF (MFiles.VAF 24.10.720.2, MFiles.VAF.Configuration 24.10.3, Newtonsoft.JSON 10.0.3).


The configuration is relatively complicated.
A list of elements can be added, which can have a different type (enum).
Based on the selection of the type, fields are shown and hidden (ShowWhen) and the required flag (RequireWhen, derived from IConditionalRequirement) is also set.

The individual values are of type Strings, Int32, but also more complex types such as KnownColor.

When entering and saving a configuration, everything is still OK.

However, if the Admin is closed and restarted, error messages are displayed in the “Local” area.
e.g. “The specified value is not a valid option” for a KnownColor property, which has been hidden and therefore cannot be filled.

Please is there a way to write only the values that are visible in the JSON or is there a way to suppress the error messages?