Skip to content

Commit f03c773

Browse files
[InputUnion RFC]Add "readable error message" criteria (#730)
1 parent 04cd832 commit f03c773

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

rfcs/InputUnion.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,14 @@ Adding a new construct for polymorphism support on input 'smells' like increasin
449449

450450
Criteria score: 🥇
451451

452+
## 🎯 P. Validation rule should produce easy to understand error message
453+
454+
Implementation of validation rules should be able to produce easy to understand error for value that is invalid according to definition of input union. It's critical for developer experience since GrahphiQL, IDE and other similar tools will output this error during development.
455+
456+
| [1][solution-1] | [2][solution-2] | [3][solution-3] | [4][solution-4] | [5][solution-5] |
457+
|----|----|----|----|----|
458+
| ✅️ | ✅️ | 🚫 | 🚫 ||
459+
452460
# 🚧 Possible Solutions
453461

454462
The community has imagined a variety of possible solutions, synthesized here.

0 commit comments

Comments
 (0)