Commit 0fb27ec
committed
docs: clarify runtime behaviour for unmapped enum cases after future flip
The advisory deprecation already announces the opt-in migration. Add a
second paragraph spelling out what happens if a resolver returns a case
that lacks #[EnumValue] after the default flips: webonyx/graphql-php's
native enum serialization rejects it, the same spec-compliant behaviour
that applies to any unknown enum value. That is the mechanism that makes
selective exposure safe — internal cases cannot leak via a resolver —
and clarifies that omitting #[EnumValue] is a deliberate 'do not expose
this value' signal, not an oversight to work around.1 parent 3fe283f commit 0fb27ec
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
151 | 159 | | |
152 | 160 | | |
153 | 161 | | |
| |||
0 commit comments