Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions regarding the validation rule "Input With Missing Required Fields" #117

Open
glen-84 opened this issue Jan 8, 2025 · 0 comments

Comments

@glen-84
Copy link
Contributor

glen-84 commented Jan 8, 2025

The spec states:

Let requiredFields be the intersection of all field names across all input objects ...

But the invalid example shows title in one input and not the other, so the intersection would surely exclude title?

Is it supposed to be the union of field names?

Second question: Must the input field be non-nullable in the other schemas, or any nullability? The spec mentions:

If requiredField is not in input:

It doesn't say that the field in input must be non-nullable.

A third example would likely help to clarify this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant