Commit 511e8f2
committed
fix(GraphQL): only mark types as nonNull if they are unconditional #778
Fields that are conditionally required need to be nullable as they are only required if the fields conditions are met. Marking them as nonNull types will result in schema errors if the condition is not met for a specific object.1 parent d943a4e commit 511e8f2
File tree
1 file changed
+2
-2
lines changed- pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Schemas
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
| 130 | + | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
0 commit comments