[Vega] Improve the error when schema is messed up #113899
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Vega
Vega visualizations
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
:VisEditors:fix-it-week
Describe the feature:
There are cases that the schema of the vega spec can be messed up:
Examples:
Mess up with the title

Add chars after the .json

This generates an error which is not so easy to understand. The fix is easy, ensure that your schema is correct. but we should ensure that the error is easier to understand. Something like:
Ensure that vega schema is set correctly
or something like that. We can work on this with the @elastic/kibana-docs teamThe text was updated successfully, but these errors were encountered: