mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
54 lines
1000 B
JSON
54 lines
1000 B
JSON
{
|
|
"namespace": "model",
|
|
"type": "record",
|
|
"doc": "An order for a pets from the pet store",
|
|
"name": "Order",
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"type": ["null", "long"],
|
|
"doc": "",
|
|
"default": null
|
|
},
|
|
{
|
|
"name": "petId",
|
|
"type": ["null", "long"],
|
|
"doc": "",
|
|
"default": null
|
|
},
|
|
{
|
|
"name": "quantity",
|
|
"type": ["null", "int"],
|
|
"doc": "",
|
|
"default": null
|
|
},
|
|
{
|
|
"name": "shipDate",
|
|
"type": ["null", { "type": "long", "logicalType": "timestamp-nanos" }],
|
|
"doc": "",
|
|
"default": null
|
|
},
|
|
{
|
|
"name": "status",
|
|
"type": ["null", {
|
|
"type": "enum",
|
|
"name": "Order_status",
|
|
"symbols": [
|
|
"placed",
|
|
"approved",
|
|
"delivered"
|
|
]
|
|
}],
|
|
"doc": "Order Status",
|
|
"default": null
|
|
},
|
|
{
|
|
"name": "complete",
|
|
"type": ["boolean", "null"],
|
|
"doc": "",
|
|
"default": false
|
|
}
|
|
]
|
|
|
|
}
|