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

SchemaBuilder: Support making validation of default values configurable

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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

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

                Dates

                • Created:
                  Updated: