Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to JSON Form Schema? #1

Open
eyleron opened this issue Jun 15, 2021 · 1 comment
Open

Switch to JSON Form Schema? #1

eyleron opened this issue Jun 15, 2021 · 1 comment

Comments

@eyleron
Copy link

eyleron commented Jun 15, 2021

Hi, I came across your comment about using props in JSON Form Schema and then I saw this UI. I've seen your name on some of the other discussions around schema-based form generators.

Did you give up om vue-form-generator because it's no longer maintained? That certainly has put me off!

I have been liking VueFormulate but they don't have support for logic in the schema for showing/hiding/requiring fields yet (although recently agreed to think about for next version).

I appreciated your comment in JSON Form Schema re: custom components, because that addresses something that annoyed me about that layer is how verbose the schema can become. I see how just using your own higher-order components can address that to a good extent: just use the schema to provide enough attributes to know to render your own component.

We build a lot of forms in my company using an admin, so this would help move things along to a PWA. I'll be sure to check out what you're working on if you open-source it! :)

@eyleron eyleron changed the title Switch to JSON Form Schema Switch to JSON Form Schema? Jun 15, 2021
@vesper8
Copy link
Owner

vesper8 commented Jun 15, 2021

Hey! Thanks for your comments : )

Yes I did give up on https://github.com/vue-generators/vue-form-generator which showed promise but appears to have been abandoned. I did find that the way they implement custom components lacked flexibility anyway.

I took a long look at other schema-based form generators and saw a whole lot that did things manually but none of them, in my opinion, showed as much promise and flexibility as https://github.com/jarvelov/vue-form-json-schema. On top of that it appears to be actively maintained and the author was helpful and responsive.

Most of all I wanted something where adding my own custom components would be relatively pain free and this one certainly checks that box. It is possible to build the entire dom with the schema alone as you saw, but this means having an extremely complex and verbose schema, instead I prefer to handle things like validation my way and use custom components that are more than a single html tag.

I have begun re-writing this UI (from this here package) using vue-form-json-schema but this is really only for a hobby project and I'm not sure if I will ever finish it. I am however now using vue-form-json-schema in production and it's working out quite well. I can certainly recommend it.

I felt like this generator was rather poorly done anyway, it certainly would be nice if a fully-featured UI was available to accompany vue-form-json-schema

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

No branches or pull requests

2 participants