We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
*
1 parent 1f99426 commit 7345d4fCopy full SHA for 7345d4f
packages/optimizely-cms-cli/src/utils/mapping.ts
@@ -25,8 +25,13 @@ export function parseChildContentType(
25
const duplicates: string[] = [];
26
const normalized = mayContainTypes.map((entry: any) => {
27
const key = extractKeyName(entry, parentKey);
28
- // Do not allow keys that start with '_' to be validated against allowedKeys
29
- if (!key.startsWith('_') && allowedKeys && !allowedKeys.has(key)) {
+ if (
+ key !== '*' &&
30
+ // Do not allow keys that start with '_' to be validated against allowedKeys
31
+ !key.startsWith('_') &&
32
+ allowedKeys &&
33
+ !allowedKeys.has(key)
34
+ ) {
35
invalid.push(key);
36
}
37
if (seen.has(key)) {
0 commit comments