before building visualization - we could still show the parts of the schema that are valid if possible, while raising the validation error use e.g. https://github.com/epoberezkin/ajv