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

Add Array support as root and nested Fields #132

Open
AleksejDix opened this issue Sep 29, 2020 · 7 comments
Open

Add Array support as root and nested Fields #132

AleksejDix opened this issue Sep 29, 2020 · 7 comments
Labels
enhancement New feature or request

Comments

@AleksejDix
Copy link

JSON root type could be any primitive type like Object, Array, String, Boolean, Null and Numbers
Objects and Arrays are most common one for making forms.

Describe the solution you'd like
root Model Value should be able to handle both types Objects and Arrays.
Arrays must hold the same type and it should be possible to repeat the types.
Arrays Entries can be deleted, created and updated.
Array Types can hold any type.

Describe alternatives you've considered
Support All JSON root types.

Additional context
Add any other context or screenshots about the feature request here.

@marina-mosti
Copy link
Member

@AleksejDix can you provide a code example of what what you're suggesting?

@AleksejDix
Copy link
Author

i was looking at different solution which have a default support for JSON Schema
here are some examples
https://rjsf-team.github.io/react-jsonschema-form/

https://json-editor.github.io/json-editor/

@marina-mosti
Copy link
Member

Oh, ok JSON Schema I understand now. This has been on the development map for a while now, it would have to be developed as a plugin similarly to what lookup is doing. I don't have the time to do this right now, but will mark the idea as a good enhancement in case anyone wants to take a crack at it :)

@marina-mosti marina-mosti added the enhancement New feature or request label Sep 29, 2020
@digitalkaoz
Copy link

digitalkaoz commented Nov 2, 2021

@marina-mosti i think he means this https://vueformulate.com/guide/inputs/types/group/ so basically a repeatable nested schema

Or at least i would be interested in this type

@marina-mosti
Copy link
Member

Hey @digitalkaoz building a plug-in to support json schema is not a small undertaking, and currently I have some other things that I want to prioritize. If anyone in the community wants to take it on, that would be awesome and it would be a great opportunity for a first 3rd part plug-in.

As for grouping fields, I'm cooking up a solution to be able to create form sections. But if it's a logical separation and not semantic you should be able to achieve it with nested schemas

@digitalkaoz
Copy link

Sure, json Schema is a big Task! I would be glad for some Idea on repeatable nested schemas :)

@marina-mosti
Copy link
Member

Can you go ahead and open a discussion about that? I don't want to bloat this issue with a side topic :)

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

No branches or pull requests

3 participants