snowplow / iglu

Iglu is a machine-readable, open-source schema repository for JSON Schema from the team at Snowplow
http://www.snowplow.io
Apache License 2.0
208 stars 45 forks source link

Schema DDL: support oneOf #410

Closed chuwy closed 6 years ago

chuwy commented 6 years ago

Following JSON Schema fails to be transformed into Redshift DDL:

"untrustedIp": {
      "type": "string",
      "oneOf": [
        { "format": "ipv4" },
        { "format": "ipv6" }
      ]
    },
Error: Function - 'processList' - Invalid JValue: JObject(List((format,JString(ipv6)))) in list in [net.openvpn/client_connect/jsonschema/1-0-0] Schema
File [/Users/chuwy/proservices/com.snowplowanalytics-schema-registry/schemas/net.openvpn/./sql/net.openvpn/client_disconnect_1.sql] was not modified

Can be solved by https://github.com/snowplow/iglu/issues/213

chuwy commented 6 years ago

Closing as dupe https://github.com/snowplow/iglu/issues/250