You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, |null is not taken into account like it is for scalar types, and this generates a $ref to the non-nullable Schema, like if I'd written @var Deal:
First of all sorry if I missed something obvious, but I've been struggling to find any information about how to handle this basic use case.
I have a Schema class that's not defined as
nullable
:When I want to use it in another Schema class and make it nullable, I write:
However,
|null
is not taken into account like it is for scalar types, and this generates a$ref
to the non-nullable Schema, like if I'd written@var Deal
:Is this expected behaviour? I'd expect this library to generate something like:
Which is what the spec seems to suggest.
In the meantime, I tried to manually configure the
@Property
, with no luck so far:This does not work as it still generates the
$ref
:What did I miss? Thanks in advance!
The text was updated successfully, but these errors were encountered: