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 3d632b7 commit 82fb3beCopy full SHA for 82fb3be
packages/vue-vuetify/src/complex/components/AdditionalProperties.vue
@@ -315,6 +315,21 @@ export default defineComponent({
315
...(control.value.schema as any).propertyNames,
316
...result,
317
};
318
+ } else if (
319
+ (control.value.schema as any).additionalProperties === false &&
320
+ typeof (control.value.schema as any).patternProperties === 'object'
321
+ ) {
322
+ // check if additionalProperties explicitly set to false then the only valid property names will be derived from patternProperties
323
+
324
+ const patterns = Object.keys(
325
+ (control.value.schema as any).patternProperties,
326
+ );
327
+ if (patterns.length > 0) {
328
+ result = {
329
+ pattern: patterns.join('|'),
330
+ ...result,
331
+ };
332
+ }
333
}
334
return result;
335
});
0 commit comments