{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/OrderItem",
  "title": "OrderItem",
  "type": "object",
  "properties": {
    "productId": {
      "type": "string"
    },
    "productName": {
      "type": "string"
    },
    "quantity": {
      "type": "number",
      "format": "float"
    },
    "unit": {
      "type": "string",
      "enum": [
        "litre",
        "kg",
        "drum",
        "pail",
        "can"
      ]
    },
    "unitPrice": {
      "type": "number",
      "format": "float"
    },
    "totalPrice": {
      "type": "number",
      "format": "float"
    }
  }
}