deepPatternProperties & deepPatternRequired & uniquePatternProperties
We would like to start by saying how expansive @epoberezkin effort is in helping people who are new to AJV, thank you for your record of answers here on GitHub and on StackOverflow, they are instrumental to our understanding of AJV.
On AJV version: 8.20.0, we are trying to target enumerated object keys with wildcard pointers, reasons could include imported/converted XSD schemas where XML tags can have the same name and not be nested (JSON can't have duplicates), or just the case where enumerated keys are just needed. Using a combination of deepPatternProperties (conceptual child of deepProperties) and patternProperties, provides a way to target validations throughout the schema. Similar to "uniqueProperties" we added "uniquePatternProperties".
We provide the GIST for your consideration: deepPatternProperties.js deepPatternRequired.js uniquePatternProperties.js
We assume more knowledgeable maintainers will be more elegant in their solutions!
Thank you!
Source: ajv-validator/ajv