Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Nested schemas with default values #271

Open
questionteller opened this issue Dec 23, 2021 · 1 comment
Open

Nested schemas with default values #271

questionteller opened this issue Dec 23, 2021 · 1 comment

Comments

@questionteller
Copy link

questionteller commented Dec 23, 2021

Hello,

first of all I'd like to thank you for this awesome library as there are not many out there focussing on schema based form generation for Vue 3 so I am really glad I have stumbled upon this one!

What I've also stumbled upon is a weird issue(?) with the following schema:

CodeSandbox of the issue

Once using a nested schema (with default values!) in a nested array schema, the following schema parts are getting nested as well in the form data. Could someone please elaborate on this one? Once removing the default values everything seems to work.

Originally posted by @questionteller in #270

Additional info: Using the array schema type for the nested schemas leads to the same issue.

@questionteller questionteller changed the title Nested mixed schemas with default values Nested schemas with default values Dec 23, 2021
@marina-mosti
Copy link
Member

hey @questionteller oops, sorry for the very late reply
We have some issues with nested schemas due to how the plugin system is conflicting with the nesting of FormSchemas, I dont think we can address these problems right now until we refactor the whole lib :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants