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

Introduce Named Schema Formatters

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.11.1
    • 1.12.0
    • java

    Description

      Similar to AVRO-3666, which introduces multiple schema parsers, I propose to introduce multiple, named, schema formatters.

      Names can be of the form <name>[/<variant>], there the variant part is optional.

      Initially, the list would be:

      • json -> alias for json/pretty
      • json/pretty > pretty{}printed JSON; replaces Schema.toString(true)
      • json/inline -> single-line JSON; replaces Schema.toString(false)
      • canonical -> Parsing Canonical Form (as per spec)

      Then, after merging AVRO-3404, we can also add:

      • idl -> to write schemata in IDL format, as requested in AVRO-1757

      Attachments

        Issue Links

          Activity

            People

              opwvhk Oscar Westra van Holthe - Kind
              opwvhk Oscar Westra van Holthe - Kind
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h