File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
packages/vue-vuetify/src/complex/components Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -315,6 +315,21 @@ export default defineComponent({
315
315
... (control .value .schema as any ).propertyNames ,
316
316
... result ,
317
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
+ }
318
333
}
319
334
return result ;
320
335
});
You can’t perform that action at this time.
0 commit comments