I would like to use
Node.check() for validating JSON against my schema in tests. While the
Node.check() is useable for that purpose, it would be even more useful if it could provide specific information about the invalid fragment in the exception it throws.
As I see it, that information is currently only available in prosemirror-model/src/content.js in ContentMatch::matchFragment Line 269. It would be helpful if the exception thrown by
Node.check() could contain the information which fragment failed in which node.
Thank you and have a nice day ,