avro icon indicating copy to clipboard operation
avro copied to clipboard

adding doc field

Open sfsf9797 opened this issue 8 months ago • 0 comments

val str =
  """
    |{
    |  "type": "record",
    |  "name": "TestRecord",
    |  "namespace": "org.apache.avro.test",
    |  "doc": "test schema",
    |  "fields": [
    |    {
    |      "name": "name",
    |      "type": {
    |        "type": "string"
    |      },
    |      "doc": "this is name"
    |    },
    |    {
    |      "name": "age",
    |      "type": {
    |        "type": "long"
    |      },
    |      "doc": "this is age"
    |    }
    |  ]
    |}
    |""".stripMargin

It would be good to add a " doc " field for each data field. I don' think this feature is supported yet but happy to work with someone from the team on implementing this.

sfsf9797 avatar Jun 25 '24 03:06 sfsf9797