patternProperties : Object<String, Schema> | Boolean
patternProperties
Object<String, Schema> | BooleanValidation succeeds if, for each instance name that matches any regular expressions that appear as a property name in this keyword’s value, the child instance for that name successfully validates against each schema that corresponds to a matching regular expression.
| Value |
This keyword must be set to an object where each key is a valid regular expression, preferrably using the ECMA-262 flavour, and each value is a valid JSON Schema
Hint: Use the jsonschema metaschema and jsonschema lint commands to catch keywords set to invalid values
|
|---|---|
| Kind | Applicator |
| Applies To | Object |
| Base Dialect | Draft 4 |
| Changed In | None |
| Introduced In | Draft 3 |
| Vocabulary | Validation |
| Specification | https://json-schema.org/draft-04/draft-fge-json-schema-validation-00#rfc.section.5.4.4 |
| Metaschema | http://json-schema.org/draft-04/schema# |
| Official Tests | draft4/patternProperties.json |
| Default |
{}
|
| Annotation | None |
| Affected By | None |
| Affects |
|
| Also See |
|