fix(@vue-vuetify): reuse the parent AJV - #2602
Conversation
✅ Deploy Preview for jsonforms-examples ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
1f9b485 to
43acbc3
Compare
13b618d to
90a7ff6
Compare
lucas-koehler
left a comment
There was a problem hiding this comment.
Hi @KiaraGrouwstra ,
thank you very much for contributing to JSON Forms ❤️
I had a look at the change and I don't think it makes a difference:
useJsonForms() of the vue package already injects the JSON Forms core state. Its ajv property should be the same ajv as injected by useAjv(). See useAjvs code here:
jsonforms/packages/vue/src/jsonFormsCompositions.ts
Lines 608 to 620 in 6db5bc8
Am I missing something that makes this change necessary?
7b6d39b to
f734784
Compare
|
Hi @lucas-koehler, thanks for your response! |
| import { extendedVuetifyRenderers } from '../../../src'; | ||
|
|
||
| global.ResizeObserver = require('resize-observer-polyfill'); | ||
|
|
There was a problem hiding this comment.
This duplicates the vuetify + ResizeObserver bootstrap from tests/unit/util/util.ts. mountJsonForms doesn't take an ajv yet, so extending it with an optional param would let this test reuse the shared helper instead of re-rolling the setup.
|
@KiaraGrouwstra Sorry for the confusion, I mislooked what excatly |
f734784 to
5431587
Compare
…m's AJV Assisted-by: Claude:claude-opus-4-8 Signed-off-by: Kiara Grouwstra <kiara.grouwstra@gmail.com>
Reuse the same AJV instance throughout JSONForms. Ensures that user configuration of AJV is retained. Signed-off-by: Kiara Grouwstra <kiara.grouwstra@gmail.com>
5431587 to
758505d
Compare
lucas-koehler
left a comment
There was a problem hiding this comment.
LGTM now! Thanks for the contribution ❤️
Reuse the same AJV instance in @vue-vuetify.
Ensures that user configuration of AJV is retained.
Disclaimer: I used a coding agent in the creation of this patch.