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

Python: validation should be a method of Schema objects

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 1.9.0
    • Component/s: python
    • Labels:

      Description

      In Python, validation of a datum by the schema was done in avro.io.validate function.
      The avro.io.validate function is a complex, recursively-called switch statement.

      Instead of calling a two-argument avro.io.validate with a Schema object and a datum, it is easier to understand and extend if they are one-argument methods on the schema.

      I (Jeremy) have written a patch that implements validate methods on Schema objects. This patch will form the prerequisite for AVRO-1265 (see "easier to extend" above).

        Attachments

          Activity

            People

            • Assignee:
              trochee Jeremy Kahn
              Reporter:
              trochee Jeremy Kahn
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: