Hi I am using the saved_objects
API to create visualizations and dashboard, but since Kibana does not validate the data as mentioned here:
When you create saved objects, attributes are not validated, which allows you to pass arbitrary and ill-formed data into the API that can break Kibana. Make sure any data that you send to the API is properly formed.
So I want to check some attributes before passing the data to Kibana, such as whether the index-pattern, field names exists and does the type of the field make sense to create visualization. May I know how can I do it?
Thanks!