TMP
[demos/microservices] / validate-user / order-validation.avsc
1 [
2 {
3   "namespace": "de.trion.microservices.avro",
4   "type": "enum",
5   "name": "OrderValidationType",
6   "symbols" : [ "ORDER_DETAILS_CHECK", "ORDER_USER_CHECK" ]
7 },
8 {
9   "namespace": "de.trion.microservices.avro",
10   "type": "enum",
11   "name": "OrderValidationResult",
12   "symbols" : [ "PASS", "FAIL" ]
13 },
14 {
15   "namespace": "de.trion.microservices.avro",
16   "type": "record",
17   "name": "OrderValidation",
18   "fields": [
19       { "name": "orderId", "type": "string" },
20       { "name": "checkType", "type": "OrderValidationType" },
21       { "name": "validationResult",  "type": "OrderValidationResult" },
22       {
23         "name": "messages",
24         "type":
25         {
26           "type": "array",
27           "items": "string"
28         }
29       }
30   ]
31 }]