Replies: 1 comment
-
I was able to get this working buy adding the dependencies inside the education object itself
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've thought about opening this as a discussion because I'm not sure if this is an issue or I'm just not able to make it works.
I'm trying to make a nested object dependencies work, I'm currently using react-jsonschema-form-layout to be able to group multiple fields into a single row. But after that I'm not able to have nested dependencies work.
My schema
{ "education": { "type": "object", "properties": { "stage": { "type": "string", "enum": ["stage1", "stage2"], "default": "stage1 }, "class": { "type": "string", } } } }
I would like to add dependencies to this schema, that what I choose "stage1" I get list of ["class1", "class2"] and when "stage2" I get ["class3", "class4"]
I hope it's clear enough.
Beta Was this translation helpful? Give feedback.
All reactions