Files
varsity/test/request-bodies/order-request.json
2025-10-01 20:01:42 +00:00

35 lines
823 B
JSON

{
"description": "Order creation data",
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["items", "shippingAddress"],
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "../schemas/order-item-schema.json"
},
"minItems": 1
},
"shippingAddress": {
"$ref": "../schemas/address-schema.json"
},
"billingAddress": {
"$ref": "../schemas/address-schema.json"
},
"paymentMethod": {
"$ref": "../schemas/payment-method-schema.json"
},
"notes": {
"type": "string",
"maxLength": 500
}
}
}
}
}
}