Output the generated UI Schema?

New to JSONForms, and while it works great, I’ve encountered a small issue.

I’m not able to replicate the automatically generated UI Schema. My attempts at UI Schema fall very short, whereas the automatically generated UI Schema is beautiful and functional.

Normally, this would not be a problem (just don’t provide UI Schema and let JSONForms work its magic), but for certain situations, I will need a slightly tweaked UI Schema. Plus, this project will be passed to other devs, and it would be nice if they could have a starting point to work from. But like I said, I am unable to replicate the automatically generated UI Schema.

It seems strange to me that this isn’t available anywhere. I tried passing in a Vue ref as the uischema prop, thinking it might get updated when the UI Schema is generated, but no. There is Generate.uiSchema, but of course that turns out to not actually be the same thing, and only generates the root elements. There is also this conversation, which led me to this pull request, which I was able to get working, only to discover that it is NOT the same as the automatically generated UI Schema.

Surely this must exist somewhere internally, right? How do we get it out? I hope I’m just missing something obvious.

Hi @PhoenixG ,

unfortunately it is currently not possible to get out the “full” deeply generated UI schema because it does not exist as a single instance in JSON Forms:

The root UI schema is generated and then the object renderer (or another applicable renderer for complex properties) handles rendering these. Only as part of that, the object renderer generates the UI schema for its object. This UI schema is then only used in the object renderer but not merged into the root UI schema.

Thus, you would need to do this deep generation yourself.

Best regards,
Lucas