spark-json-schema icon indicating copy to clipboard operation
spark-json-schema copied to clipboard

Add support for object nullability expressed with "oneOf"

Open tomasz-dudziak opened this issue 1 year ago • 0 comments

There are three different ways in JSON schema to say that a field is a nullable object. One of them is for example:

"myField1" : {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "prop" : {
                        "type" : "string"
                      }
                    }
                  }
                ]
              }

This is currently not supported.

tomasz-dudziak avatar Dec 13 '23 16:12 tomasz-dudziak