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

Make generate JSON Schema compatible with react-jsonschema-form? #177

Open
arildm opened this issue Nov 1, 2023 · 1 comment
Open

Make generate JSON Schema compatible with react-jsonschema-form? #177

arildm opened this issue Nov 1, 2023 · 1 comment

Comments

@arildm
Copy link
Member

arildm commented Nov 1, 2023

We want to use the sparv schema output to generate a config form in Mink, but some details seem to be missing to be able to properly generate form components.

I pasted the schema at the react-jsonschema-form playground and got some errors:

  • "Missing items definition" where the type is array
  • "Unknown field type undefined" in some places

Note: I don't know yet if react-jsonschema-form is the lib we will want to use for this.

@MartinHammarstedt
Copy link
Member

It doesn't seem to like when the datatype is undefined (including the datatype of items in an array). We don't require explicit datatypes in the Sparv config currently, and sometimes you actually want to allow any type of data, which is represented in JSON Schema by NOT specifying the datatype. I'm not sure how to best solve this.

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