I have a json document in which a part can be either null or a subobject, like this:
[{ \"owner\":null }, { \"owner\":{ \"id\":1 } }]
nullable field will be supported in OpenApi (aka Swagger) Specification v3.0.0
nullable
So with this new spec your definition would look like:
"properties":{ "owner":{ "nullable": true, ... } },