Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3144

SchemaBuilder: Support making validation of default values configurable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.11.0
    • None
    • None

    Description

      The SchemaBuilder's createFields methods pass a value of 'true' to the validateDefault option within the Field constructor.

      While this is very useful to have, it results in not being able to seamlessly migrate from 1.8 to >= 1.9 if an application/registry already has schemata with invalid defaults. 

      Given that Schema.Parser allows us to configure this, can we support the same idea within SchemaBuilder?

      Attachments

        Issue Links

          Activity

            People

              ahailu Andreas Hailu
              ahailu Andreas Hailu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: