Mostafa Aghajani 17f9a28093
Avro fix arrays with items as a ref to defined enum (#13162)
* avro-schema generation fix for arrays with ref to enum (or any non primitive type) to include modelPackage prefix

* sample scenario and generated outputs for avro-schema

* create avro-schema dedicated test file
2022-08-16 00:22:49 +08:00

37 lines
662 B
JSON

{
"namespace": "model",
"type": "record",
"doc": "Describes the result of uploading an image resource",
"name": "ApiResponse",
"fields": [
{
"name": "code",
"type": ["null", "int"],
"doc": "",
"default": null
},
{
"name": "type",
"type": ["null", "string"],
"doc": "",
"default": null
},
{
"name": "message",
"type": ["null", "string"],
"doc": "",
"default": null
},
{
"name": "statuses",
"type": ["null", {
"type": "array",
"items": "model.ApiResponseStatuses"
}],
"doc": "",
"default": null
}
]
}