+ This app shows how to use the ES|QL validation API with all its options
+
+
+
+ {
+ setCallbacksEnabled({
+ ...callbacksEnabled,
+ [optionId]: !callbacksEnabled[optionId as keyof typeof callbacksEnabled],
+ });
+ }}
+ />
+
+
+
+
+ setIgnoreErrors(!ignoreErrors)}
+ />
+
+
+ 0}
+ error={currentErrors}
+ >
+ setQuery(e.target.value)}
+ isInvalid={currentErrors.length > 0}
+ />
+
+ {currentWarnings.length ? (
+
+ Here the list of warnings:
+
+ {currentWarnings.map((message) => (
+ - {message}
+ ))}
+
+
+ ) : null}
+
+
+
+
+