conjure-java icon indicating copy to clipboard operation
conjure-java copied to clipboard

nonNullCollections flag isn't being respected for alias types

Open a-k-g opened this issue 5 years ago • 2 comments

What happened?

We have the following conjure type:

  AndSearchFilter:
    docs: |
      A SearchFilter used to combine multiple SearchFilters.
      A row satisfies this SearchFilter if and only if it satisfies all combined SearchFilters.
    alias: set<SearchFilter>

And we have enabled the nonNullCollections flag to enforce that the set cannot contain null entries. However, this is not being enforced.

What did you want to happen?

Constructing the AndSearchFilter with a set containing null should fail.

a-k-g avatar Sep 25 '20 14:09 a-k-g