You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Daniel Orner (JIRA)" <ji...@apache.org> on 2018/07/16 21:04:00 UTC

[jira] [Created] (AVRO-2200) Option to fail when extra fields are in the payload

Daniel Orner created AVRO-2200:
----------------------------------

             Summary: Option to fail when extra fields are in the payload
                 Key: AVRO-2200
                 URL: https://issues.apache.org/jira/browse/AVRO-2200
             Project: Avro
          Issue Type: Improvement
          Components: ruby
            Reporter: Daniel Orner


Currently, when passing a datum into the schema validator, the datum will pass even if the datum has more fields than the schema does. This can be dangerous because the client code is assuming that the schema has these values, but they are actually being silently swallowed when they are encoded.

I'd like to open a PR where we can provide an option to make the validator fail on any extra fields. See https://github.com/salsify/avro-patches/pull/15



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)