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

Add validation for MemoryViz compatible JSON #97

Open
leowrites opened this issue Oct 21, 2024 · 0 comments
Open

Add validation for MemoryViz compatible JSON #97

leowrites opened this issue Oct 21, 2024 · 0 comments

Comments

@leowrites
Copy link
Collaborator

When using MemoryViz with an incompatible JSON, such as when a field is missing, MemoryViz may crash.

In this example, type is missing

[{
    id: 19,
    value: "type is missing",
    style: ["highlight"],
}]

It would be nice if there are validations to handle these cases and give more descriptive error messages, such as: Error: "type" is missing while drawing a primitive object.

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

1 participant