Hello,
I have a problem, when I add the ‘some’ operator, I encounter a maximum recursion error, and when I click to add a rule, my browser freezes. For this operator, I need to have an array of rules, and these rules can also include the ‘some’ operator.
Let me know if you’d like further clarifications or assistance with this issue!
JSON Forms version: 3.4.0
Renderer: jsonforms/vue-vuetify 3.4.0
Error:
Uncaught (in promise) Maximum recursive updates exceeded in component <one-of-select-renderer>. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.
schema:
{
$schema: 'http://json-schema.org/draft-07/schema#',
$id: 'rules',
title: 'Rules',
type: 'array',
items: {
type: 'object',
properties: {
attribute: {
type: 'string'
}
},
required: ['attribute'],
oneOf: [
{
title: 'Operator: equals',
properties: {
operator: {
const: 'equals',
default: 'equals'
},
value: {
type: 'string'
}
},
required: ['operator', 'value']
},
{
title: 'Operator: in',
properties: {
operator: {
const: 'in',
default: 'in'
},
value: {
type: 'array',
items: { type: 'string' }
}
},
required: ['operator', 'value']
},
{
title: 'Operator: contains',
properties: {
operator: {
const: 'contains',
default: 'contains'
},
value: {
type: 'array',
items: { type: 'string' }
}
},
required: ['operator', 'value']
},
{
title: 'Operator: has operation',
properties: {
operator: {
const: 'has operation',
default: 'has operation'
},
value: {
type: 'array',
items: { type: 'string' }
}
},
required: ['operator', 'value']
},
{
title: 'Operator: operation confirmed',
properties: {
operator: {
const: 'operation confirmed',
default: 'operation confirmed'
},
value: {
type: 'array',
items: { type: 'string' }
}
},
required: ['operator', 'value']
},
{
title: 'Operator: some',
properties: {
operator: {
const: 'some',
default: 'some'
},
value: {
$ref: '#'
}
},
required: ['operator', 'value']
}
]
}
}
