JSON_SCHEMA_VALID(schema,document)

Validates a JSON document against a JSON schema. Both schema and
document are required. The schema must be a valid JSON object; the
document must be a valid JSON document. Provided that these conditions
are met: If the document validates against the schema, the function
returns true (1); otherwise, it returns false (0).

URL: https://dev.mysql.com/doc/refman/8.4/en/json-validation-functions.html

