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

how the Avro Schema with Union type can accept the ‘normal JSON’

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      how the Avro Schema with Union type can accept the ‘normal JSON’

      Avro Schema; 
                              

      {                             "name": "middle_name",                             "type": [                                 "null",                                 "string"                             ],                             "default": null                         }

       
      how to accept the Normal json payload like:   "middle_name": "chang" ,  not the one:  
                  "middle_name": 

      {                 "string": "chang"             }

      Thanks In advance.
        

      Attachments

        1. test2.avsc
          1 kB
          Ning Chang

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ningchang2021 Ning Chang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: