AdditionalPropertiesSchemaRule constructor
- required SchemaRule schema,
- required Set<
String> declaredKeys, - required List<
RegExp> patternRegexes,
Creates a rule that applies schema to every non-evaluated property.
declaredKeys is the set of keys covered by properties.
patternRegexes is the list of compiled regex patterns from
patternProperties. A property is "additional" only if its name is
neither in declaredKeys nor matched by any regex in patternRegexes.
Implementation
const AdditionalPropertiesSchemaRule({
required this.schema,
required this.declaredKeys,
required this.patternRegexes,
});