News for hackers. Stuff that matters.
Re:JSONForms: Customizable JSON Schema-based forms by legostormtroopr on Wednesday May 25, 2022 @12:48AM (#31500719)
This is really really cool, but... incoming rant

So much of the Javascript tooling is reinvention of XML technologies - XML Schemas and XForms have been around for decades, and were standardised long ago. XForms supported data bindings, data schemas, conditional rendering and more - and this is a poor facsimile of all of that.

For some reason, web development schismed and decided that XML was "old" and Javascript and JSON were the way forward. But in their wake through so much knowledge and technology under the bus.

Re:JSONForms: Customizable JSON Schema-based forms by techdragon on Wednesday May 25, 2022 @07:15AM (#31502865)
I've kept on top of the current state of XForms for years now because they are the pinnacle of "DRY" for "CRUD" however they aren't ubiquitous due to the ecosystem around them having significant tradeoffs if you aren't already invested in certain technologies. Every now and then XForms looks like it will fit, but then it fails at a later design review. This is mainly due to a lack of options when it comes to the backends to process them. Like many XML family technologies its a deeply corporate world with a lot of lock in.
Re:JSONForms: Customizable JSON Schema-based forms by yaffol on Wednesday May 25, 2022 @08:07AM (#31503340)
At crossref.org we are building out a form-based application using this library, and also working on the development of the VueJS/Vuetify renderer set https://github.com/eclipsesource/jsonforms-vuetify-renderers.

The UISchema is a compromise, and I think that largely is a result of the limitations of JSON Schema when applied to form generation - it's good, but it's not perfect.

There is an open discussion on the JSON Schema GH about creating a custom JSON Schema vocabulary for form generation, which could answer some of these limitations https://github.com/json-schema-org/community/discussions/70

Re:JSONForms: Customizable JSON Schema-based forms by Eric_WVGG on Wednesday May 25, 2022 @06:10AM (#31502469)
I built out an implementation of this last week! Very easy to wire our pre-existing React input components into their rendering system.

I was less pleased with the “uischema” method of layout, found that limiting and not “react-y”. But was able to hack together a custom thing that used CSS Grid, so good enough.

Re:JSONForms: Customizable JSON Schema-based forms by ProfXponent on Wednesday May 25, 2022 @02:36AM (#31501284)
Coupling this with pg jsonb fields can be really powerful. Opens a lot of doors for configurable UI with robust validation.