Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faulty json does not always generate exceptions #292

Open
thejobsmarket opened this issue Jun 6, 2024 · 2 comments
Open

Faulty json does not always generate exceptions #292

thejobsmarket opened this issue Jun 6, 2024 · 2 comments

Comments

@thejobsmarket
Copy link

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?

@crisperit
Copy link
Contributor

@jpeiffer
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants