{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adyen/refs/heads/main/json-schema/checkout-sub-input-detail-schema.json",
  "title": "SubInputDetail",
  "description": "SubInputDetail schema from Adyen API",
  "type": "object",
  "properties": {
    "configuration": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Configuration parameters for the required input.",
      "type": "object"
    },
    "items": {
      "description": "In case of a select, the items to choose from.",
      "items": {
        "$ref": "#/components/schemas/Item"
      },
      "type": "array"
    },
    "key": {
      "description": "The value to provide in the result.",
      "type": "string"
    },
    "optional": {
      "description": "True if this input is optional to provide.",
      "type": "boolean"
    },
    "type": {
      "description": "The type of the required input.",
      "type": "string"
    },
    "value": {
      "description": "The value can be pre-filled, if available.",
      "type": "string"
    }
  }
}