In a strongly typed ConfigurationEditor how do you...
# package-development
m
In a strongly typed ConfigurationEditor how do you add validation?
Copy code
public class FeatureFlaggedConfiguration
    {
        [ConfigurationField(key: nameof(Requirement),
           name: nameof(Requirement),
           view: "radiobuttonlist",
           Description = "Controls whether 'All' or 'Any' feature in a list of features should be enabled to render the editor")]
        public RequirementType Requirement { get; set; }

        public List<string> Features { get; set; }

        [ConfigurationField(key: nameof(DataType),
          name: "Data Type",
          view: "treepicker",
          Description = "The data type to feature flag")]
        public Guid DataType { get; set; }
    }