Hi @adanielyan, @collegewap,
It seems the error comes from the validation framework Ajv we are using, see this open issue (ajv-validator/ajv#1705).
There’s not much we can do about that except for waiting for a fix. However there are some workarounds you can use:
- Restructure your schema to not use so many
oneOf
. Instead useenum
. If you used theoneOf
constructs to render different labels for your enums, you can use the JSON Formsi18n
support instead to deliver alternative labels for the enums. Or, - Turn off validation within JSON Forms by handing over
validationMode="NoValidation"
. Then whenever you receive a data event from JSON Forms, you can validate it yourself outside. You can also use AJV for this. Once validated, you hand over the determined errors via theadditionalErrors
prop back toJsonForms
. The clue: You validate with a modifiedschema
in which you removed theoneOf
construct. You will lose the validation for that specific part, but all the remaining validations will work as before.
I hope this helps. Let me know if you have questions.