{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/servicenow/main/json-schema/servicenow-cart-item-input-schema.json",
  "title": "CartItemInput",
  "description": "Input for adding a catalog item to the cart or ordering directly.",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/servicenow-cart-api-openapi.yml#/components/schemas/CartItemInput",
  "type": "object",
  "required": [
    "sysparm_quantity"
  ],
  "properties": {
    "sysparm_quantity": {
      "type": "integer",
      "minimum": 1,
      "description": "The quantity of items to order."
    },
    "variables": {
      "type": "object",
      "description": "Name-value pairs for the catalog item variables. Keys are variable names and values are the user-provided entries.",
      "additionalProperties": {
        "type": "string"
      }
    }
  }
}