zalando-incubator / spark-json-schema

JSON schema parser for Apache Spark
MIT License
81 stars 43 forks source link

Add support for object nullability expressed with "oneOf" #54

Open tomasz-dudziak opened 11 months ago

tomasz-dudziak commented 11 months ago

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.