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

Arrays are not marked as "required" #50

Closed
idoub opened this issue Jan 10, 2022 · 0 comments · Fixed by #52
Closed

Arrays are not marked as "required" #50

idoub opened this issue Jan 10, 2022 · 0 comments · Fixed by #52

Comments

@idoub
Copy link

idoub commented Jan 10, 2022

Arrays (and fields in the array) are not marked as required even if they are marked as non-null in the schema.

type Test {
    foos: [Foo!]!
    bars: [Bar]!
    bazs: [Baz!]
}

None of these will receive the red "Required" bubble in the documentation.

This was referenced Jan 12, 2022
offbeatful pushed a commit that referenced this issue Jan 18, 2022
* Update package.json

Looks like updating graphql-2-json-schema resolves #50

* Update npm and yarn lockfiles

* 1.1.7

Co-authored-by: Isaac Doub <isaac.doub@kaseware.com>
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

Successfully merging a pull request may close this issue.

1 participant