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

Specify how references are used in conjunction with the uiSchema #11

Open
Splizard opened this issue Sep 13, 2024 · 1 comment
Open
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Splizard
Copy link

Splizard commented Sep 13, 2024

jsonschema defines $defs as a place to store reusable definitions, it's not clear how the uiSchema for a possibly recursive structure should be specified when each property for an object is specified in the $defs section.

Would it be better to use an extension field instead of a seperate object for the uiSchema?

@JulianCataldo JulianCataldo added enhancement New feature or request good first issue Good for newcomers labels Sep 21, 2024
@JulianCataldo
Copy link
Contributor

Hi,

https://github.com/json-schema-form-element/jsfe?tab=readme-ov-file#acknowledgements

There is a lot of API types with this kind of form generator. It's a pandora box to support every UI stuff via schema I think.

JSFE is inspired by the RJSFE (react) API, but it's a much older and experienced lib. Reading their source code, you'll see they do some quite heavy work at runtime and typings-wise. Sadly I don't have time, or support for this project for more exhaustive UI schemas stuff.

I think the most flexible is to use custom widgets, and maybe inject Lit Contexts, leveraging data attributes, CSS wizardry…

Feel free to make API design propositions :)

bye

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants