smallrye-graphql icon indicating copy to clipboard operation
smallrye-graphql copied to clipboard

`@NonNull Optional<...>` should throw an error

Open ybroeker opened this issue 4 years ago • 0 comments

Currently, Optional<?> fields annotated with @NonNull are marked as non-null in the schema.

It would be better if such conflicting types ("optional but not null") would throw an exception during schema creation to prevent errors.

ybroeker avatar Jul 20 '21 13:07 ybroeker