mozilla / jsonschema-transpiler

Compile JSON Schema into Avro and BigQuery schemas
Mozilla Public License 2.0
42 stars 10 forks source link

`--resolve drop` fails on simple schema with incompatible multi-typed items #78

Open fbertsch opened 5 years ago

fbertsch commented 5 years ago

For example:

{
  "type": "object",
  "properties": {
    "slices": {
      "type": ["array", "number"],
      "items": {"type": "string"}
    }
  }
}

fails with: thread 'main' panicked at 'calledResult::unwrap()on anErrvalue: "__unknown__ - empty object"', src/libcore/result.rs:1009:5