William Cheng 8741a8ca35
Minor enhancements to the Avro schema generator (#3728)
* minor enhancements to the avro generator

* add option to customize package name

* update doc
2019-08-22 16:06:04 +08:00

53 lines
908 B
JSON

{
"namespace": "model",
"type": "record",
"doc": "A pet for sale in the pet store",
"name": "Pet",
"fields": [
{
"name": "id",
"type": ["null", "long"],
"doc": ""
},
{
"name": "category",
"type": ["null", "model.Category"],
"doc": ""
},
{
"name": "name",
"type": "string",
"doc": ""
},
{
"name": "photoUrls",
"type": {
"type": "array",
"items": "string"
},
"doc": ""
},
{
"name": "tags",
"type": ["null", {
"type": "array",
"items": "model.Tag"
}],
"doc": ""
},
{
"name": "status",
"type": ["null", {
"type": "enum",
"name": "Pet_status",
"symbols": [
"available",
"pending",
"sold"
]
}],
"doc": "pet status in the store"
}
]
}