forked from loafle/openapi-generator-original
* minor enhancements to the avro generator * add option to customize package name * update doc
53 lines
908 B
JSON
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"
|
|
}
|
|
]
|
|
}
|