Skip to content

Commit 7b6d39b

Browse files
fix(@vue-vuetify): reuse the parent AJV
Reuse the same AJV instance throughout JSONForms. Ensures that user configuration of AJV is retained. Signed-off-by: Kiara Grouwstra <kiara.grouwstra@gmail.com>
1 parent 9b635bd commit 7b6d39b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/vue-vuetify/src/complex/components/AdditionalProperties.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ import {
109109
import {
110110
DispatchRenderer,
111111
JsonForms,
112+
useAjv,
112113
useJsonForms,
113114
useJsonFormsControlWithDetail,
114115
useTranslator,
@@ -409,8 +410,8 @@ export default defineComponent({
409410
validationMode: parentValidationMode,
410411
i18n,
411412
middleware,
412-
ajv,
413413
} = useJsonForms();
414+
const ajv = useAjv();
414415
415416
// if the new property name is not specified then hide any errors
416417
const validationMode = computed(() =>

0 commit comments

Comments
 (0)