This message was deleted.
# ask-for-help
s
This message was deleted.
a
Hi any suggestion here? thanks
j
Hey @Asaf Alina sorry for the late reply. Would setting
nullable
to
True
be enough for your usecase? @Aaron Pham wdyt of this? BentoML omitting
None
is due to us setting
omit_if_default
for cattr
a
the default cattrs converter omitting None is intentional, but whenever we dump the spec we can just include this if needed
currently there is no way to customize it, but what is the motivation behind needing
default: null
?
a
Hi @Jian Shen Yap and @Aaron Pham, sorry for the late response. > Would setting
nullable
to
True
be enough for your usecase? i dont think so. its another field that i indeed set, however that alone isnt enough. > but what is the motivation behind needing
default: null
well simply indicating that the default value is null. maybe im missing something… does specifying
default: null
is the same as not specifying
default: null
? will both be considered the same?