Hi, how should be handled fields that can be `stri...
# community-help
g
Hi, how should be handled fields that can be
string | null
? Shall I create a schema with
string
type and then play with the ``dirty_values`` flag to handle null values? Or shall I just drop my empty fields maybe? Thanks for insight
k
You can mark field as
optional: true
in the schema
This way, either that field need not exist in the document or its value can be
null
(the latter feature available in the RC)
g
Ups sorry to have badly read the documentation, it makes sense, thanks!
k
No worries.