[
https://issues.apache.org/jira/browse/AVRO-4003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17861312#comment-17861312
]
Cameron Mayhew commented on AVRO-4003:
--------------------------------------
Apologies, I should have been more specific - some extra context: while
converting from JSON to Avro, we are trying to match the given JSON as a
particular writer schema version. Later schema versions are then used as the
'reader' to provide evolution into the latest data format. A JSON payload that
conforms to neither reader or writer schema versions can be wrongly identified
as using these schemas due to the allowance of additional fields. In my
opinion, a payload that doesn't exactly match with any writer's schema should
fail being deserialised as it is not meeting the requirements of avro.
> Option to fail when extra fields are in the payload - Java
> ----------------------------------------------------------
>
> Key: AVRO-4003
> URL: https://issues.apache.org/jira/browse/AVRO-4003
> Project: Apache Avro
> Issue Type: Improvement
> Reporter: Cameron Mayhew
> Priority: Minor
>
> Hello,
>
> This relates to: https://issues.apache.org/jira/browse/AVRO-2200
>
> Wondering if there's any plan to do the same for Java? Dealing with this
> issue currently.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)