Open thejobsmarket opened 5 months ago
I believe there's a schema validation mode https://github.com/peiffer-innovations/json_dynamic_widget/blob/main/json_dynamic_widget/lib/src/components/json_widget_registry.dart#L21-L23
I'd love if you can provide some examples of said faulty JSON. I'm constantly trying to improve the error outputs but it's a classic "sword vs shield" problem. The sword (error) only has to find one place you didn't think about to create havoc but the shield (logging) has to try to defend against all of them.
First of all, I love Flutter and json dynamic widgets. When some arguments are wrong or dynamic variables aren't available in the registry, no exception is raised and nothing is shown. I created a testing tool to quickly find out if a json is working or not. Happy to contribute the code if of interest. I don't see any exceptions when dynamic variables are not in the registry but this is easy to test for. However how do you check if a type has all the required fields and they are all valid?