jarvelov / vue-form-json-schema

Create forms using JSON schema. Bring your components!
https://jarvelov.gitbook.io/vue-form-json-schema/
353 stars 54 forks source link

Consider making uiSchema optional #84

Open matthewlenz opened 3 years ago

matthewlenz commented 3 years ago

Great project. Maybe this is already available and I just overlooked it in the documentation. Have you considered making it "just work" using reasonable defaults for a uiSchema? Pretty much every other json schema form generator available will generate a basic form with no manual layout required.

jarvelov commented 3 years ago

Hi @matthewlenz

No, this is not included although I have considered it, however this project as it is right now takes up pretty much all the time I can give, so I wouldn't have the time to develop and maintain this feature.

It would require some thought as to what scope the feature should have. Since there are many forms out there, a level has to be set where the "reasonable defaults" are maintainable and that it covers most use cases. It would be very sweet to have something like that in VFJS, but right now my focus is on Vue 3 compatibility and after that it's to handle async validations.

However, should you or someone else be interested in contributing such a feature I very much welcome it and would be happy to provide feedback.

To any one reading this and thinking that you want to submit a PR with it, do make an issue first and lay out your idea for the implementation first. There are a couple of pitfalls one needs to navigate around when it comes to this issue.

matthewlenz commented 3 years ago

I understand completely. Not exactly a quick undertaking. Thanks for the response.