I have created custom renderers in jsonforms and i want to set null to the key when there is no input from user, but we im going to set it as null in my custom renderer, jsonforms throwing me error such that null is not allowed to type string key
This time the error is for an enum. An enum is a list of allowed values, so even if null is valid via the type, it’s still a validation error if null is not also in the list of allowed values. It’s just a different validation error.
Note that these are not JSON Forms specific questions but just basic JSON Schema validation.
You can check via an online JSON Schema validator like this one whether your schema and data will produce a validation error. For more information about JSON Schema validation I can recommend this e-book.