Include type and attribute name in validate error messages #83

Merged
ocavue merged 2 commits from ocavue/validate-error-message into master 2024-07-18 20:22:14 +02:00
ocavue commented 2024-07-18 11:32:58 +02:00 (Migrated from github.com)

I found it might be hard to debug validate errors like "Expected value of type string, got boolean". This PR adds the attribute name and node/mark type name to the error message, which should make debugging a lot easier.

I found it might be hard to debug validate errors like "Expected value of type string, got boolean". This PR adds the attribute name and node/mark type name to the error message, which should make debugging a lot easier.
marijnh commented 2024-07-18 20:22:33 +02:00 (Migrated from github.com)

Thanks!

Thanks!
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
prosemirror/prosemirror-model!83
No description provided.