{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/theothers-shop/json-schema/theothers-shop-order-request-schema.json",
  "title": "OrderRequest",
  "description": "ACP-style order placement request.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/theothers-shop-openapi.json#/components/schemas/OrderRequest",
  "properties": {
    "agent_id": {
      "type": "string",
      "title": "Agent Id"
    },
    "session_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Session Id"
    },
    "product_id": {
      "type": "string",
      "title": "Product Id"
    },
    "size": {
      "type": "string",
      "title": "Size"
    },
    "color": {
      "type": "string",
      "title": "Color"
    },
    "quantity": {
      "type": "integer",
      "maximum": 10.0,
      "minimum": 1.0,
      "title": "Quantity",
      "default": 1
    },
    "buyer_info": {
      "type": "object",
      "title": "Buyer Info",
      "description": "Name, email, shipping address"
    },
    "payment_token": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Payment Token",
      "description": "Stripe payment token (mocked — any string accepted in dev mode)"
    }
  },
  "type": "object",
  "required": [
    "agent_id",
    "product_id",
    "size",
    "color",
    "buyer_info"
  ]
}