{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ucp.centaurapps.com/schemas/fitment.json",
  "title": "com.centaurapps.shopping.fitment",
  "description": "Extends dev.ucp.shopping.checkout with generic fitment inputs: the buyer's selections at the shop's levels, and answers to the product's questions. Checkouts carrying products with fitment rules escalate unless fitment is verified.",
  "allOf": [
    { "$ref": "https://ucp.dev/2026-04-08/schemas/shopping/checkout.json" },
    {
      "type": "object",
      "properties": {
        "levels": {
          "type": "object",
          "description": "The buyer's selections keyed by level key (l1, l2, ... per the shop's levels), values copied from the level options",
          "additionalProperties": { "type": "string" }
        },
        "answers": {
          "type": "object",
          "description": "Question key to the chosen option's value, copied verbatim",
          "additionalProperties": { "type": "string" }
        }
      }
    }
  ]
}
