You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just for reference: I used the following json-schema documentation to build such a construct json-schema.org/.... See the second example block underneath If-Then-Else. My intention is to add an arbitrary set of properties (here just: lastname) to a schema if some condition is met (here: if recurrence equals 'Never').
The actual issue is the following: Every Control-Renderer receives a property called control which contains the necessary information for my current form element. This control also holds a property path which is derived from the scope-property of the ui-schema and is further used as the key for the data object to be created via the form.
E.g.: scope: '#/properties/name' -> control.path: 'name' -> { name: 'Jon', ... }.
For the property which is only added if a certain condition is met, my scope-property is the following: #/anyOf/0/then/properties/lastname. If I now inpsect via vue-devtools what my control.path holds for my actually rendered control of #/anyOf/0/then/properties/lastname it equals: control.path: 'properties'.
Expected behavior
control.path holds the correctly transformed value: lastname.
Describe the bug
Imagine having the following two schemas (i used the vue3 seeder repository as a basis):
Just for reference: I used the following json-schema documentation to build such a construct json-schema.org/.... See the second example block underneath
If-Then-Else
. My intention is to add an arbitrary set of properties (here just:lastname
) to a schema if some condition is met (here: ifrecurrence
equals'Never'
).The actual issue is the following: Every Control-Renderer receives a property called
control
which contains the necessary information for my current form element. Thiscontrol
also holds a propertypath
which is derived from thescope
-property of the ui-schema and is further used as the key for the data object to be created via the form.E.g.:
scope: '#/properties/name'
->control.path: 'name'
->{ name: 'Jon', ... }
.For the property which is only added if a certain condition is met, my
scope
-property is the following:#/anyOf/0/then/properties/lastname
. If I now inpsect via vue-devtools what mycontrol.path
holds for my actually rendered control of#/anyOf/0/then/properties/lastname
it equals:control.path: 'properties'
.Expected behavior
control.path
holds the correctly transformed value:lastname
.Steps to reproduce the issue
lastname
field via vue-devtoolscontrol.path
Screenshots
No response
In which browser are you experiencing the issue?
Google Chrome
Framework
Core, Vue 3
RendererSet
Vanilla
Additional context
No response
The text was updated successfully, but these errors were encountered: