Could you share a reproducible repo or files?
El mié., 6 de dic. de 2017 07:00, Martin Mucha <[email protected]>
escribió:
> Hi,
>
> I have JSON like:
>
> {
> "a": {
> "b": "1"
> }
> }
>
> and corresponding avro schema (written for the sake of this e-mail, need
> not to be 100% accurate)
>
> {
> "name": "aRecord",
> "type": "record",
> "namespace": "a",
> "fields": [
> {
> "name": "a",
> "type": {
> "name": "bRecord",
> "type":"record",
> "fields": [
> { "name": "b", "type": "string"}
> ]
> }
> }
>
> ]
> }
>
> In ConvertJsonToAvro processor, json missing field "b":
>
> {"a":{}}
>
> will be rejected, while in ValidateRecord it will be accepted as valid
> (which is not valid according to schema). Is there anything I can do about
> it? Is it bug?
>
> thanks,
> Martin.
>