Hello,
I’m facing an issue with the uischema.
I have a complex schema and UI schema.
My data uses the same property name in different places.
{
type: "stringA",
subObject: {
type: "stringB",
otherProperty: "stringC";
}
}
This is a piece of code of my uischema is:
{
type: 'Control',
scope: '#/properties/type',
},
{
type: 'Group',
elements: [
{
type: 'Control',
scope: '#/properties/subObject',
options: {
detail: {
type: 'VerticalLayout',
elements: [
{
type: 'Control',
scope: '#/properties/type',
rule: {
effect: 'DISABLE',
condition: {
scope: '#/properties/type',
minLength: 1,
},
},
},
{
type: 'Control',
scope: '#/properties/otherProperty',
}
]
}
}
}
]
}
I’ve declared a schema like that:
{
type: 'object',
additionalProperties: true,
properties: {
type: {
type: 'string',
options: {
optionA: 'anyvalue'
},
},
subObject: {
type: 'array',
items: {
$ref: '#/definitions/SubObject',
},
},
},
};
If I define a rule or any other option in my UI schema, for the first type, it will be take into account. If I declare one for my subObject.type, the uischema will always return
{type: 'Control', scope: '#/properties/type', label: false}
How can I manage that on my side? I can’t rename the properties in my data file.
What I’m expecting? For the sub property, the uischema property should be return the rule:
{type: 'Control', scope: '#/properties/type', rule: {...] }
Config: “@jsonforms/angular”: “3.6.0”
