> ## Documentation Index
> Fetch the complete documentation index at: https://uqp.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# QuestionCatalog

> Define pack intake questions, answer types, options and required-question metadata.

Source: spec/schemas/question-catalog.json. Draft v0.1; reference, not production.

Use the canonical JSON below for all constraints.

## Properties and definitions

| Property / definition | Required | Type / reference | Description / constraints |
| - | - | - | - |
| pack\_id | yes | common.json#/\$defs/packId | \{"\$ref":"common.json#/\$defs/packId"} |
| pack\_version | yes | common.json#/\$defs/packVersion | \{"\$ref":"common.json#/\$defs/packVersion"} |
| provenance | no | string | \{"type":"string","minLength":1} |
| questions | yes | array | \{"type":"array","items":\{"type":"object","properties":\{"id":\{"type":"string","minLength":1},"label":\{"type":"string","minLength":1},"type":\{"enum":\["text","string","number","boolean","single\_select","multi\_select","object"]},"required":\{"type":"boolean"},"factor\_ids":\{"type":"array","items":\{"type":"string","minLength":1},"uniqueItems":true},"options":\{"type":"array","items":\{"oneOf":\[\{"type":"string"},\{"type":"object","properties":\{"value":\{},"label":\{"type":"string","minLength":1},"multiplier":\{"type":"number","minimum":0},"width":\{"type":"number","minimum":0},"height":\{"type":"number","minimum":0},"provenance":\{"type":"string","minLength":1}},"required":\["value","label"],"additionalProperties":false}]}},"description":\{"type":"string","minLength":1},"unit":\{"type":"string","minLength":1},"provenance":\{"type":"string","minLength":1},"source\_ids":\{"type":"array","items":\{"type":"string","minLength":1},"uniqueItems":true},"evidence\_count":\{"type":"integer","minimum":0},"status":\{"enum":\["assumption","unvalidated"]},"show\_if":\{"type":"object","properties":\{"question\_id":\{"type":"string","minLength":1},"equals":\{"type":"boolean"}},"required":\["question\_id","equals"],"additionalProperties":false}},"required":\["id","label","type","required"],"additionalProperties":false}} |

## Full JSON

```json theme={null}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://uqp.dev/spec/schemas/question-catalog.json",
  "title": "QuestionCatalog",
  "type": "object",
  "properties": {
    "pack_id": {
      "$ref": "common.json#/$defs/packId"
    },
    "pack_version": {
      "$ref": "common.json#/$defs/packVersion"
    },
    "provenance": {
      "type": "string",
      "minLength": 1
    },
    "questions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "label": {
            "type": "string",
            "minLength": 1
          },
          "type": {
            "enum": [
              "text",
              "string",
              "number",
              "boolean",
              "single_select",
              "multi_select",
              "object"
            ]
          },
          "required": {
            "type": "boolean"
          },
          "factor_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "uniqueItems": true
          },
          "options": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "object",
                  "properties": {
                    "value": {},
                    "label": {
                      "type": "string",
                      "minLength": 1
                    },
                    "multiplier": {
                      "type": "number",
                      "minimum": 0
                    },
                    "width": {
                      "type": "number",
                      "minimum": 0
                    },
                    "height": {
                      "type": "number",
                      "minimum": 0
                    },
                    "provenance": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "required": [
                    "value",
                    "label"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "description": {
            "type": "string",
            "minLength": 1
          },
          "unit": {
            "type": "string",
            "minLength": 1
          },
          "provenance": {
            "type": "string",
            "minLength": 1
          },
          "source_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "uniqueItems": true
          },
          "evidence_count": {
            "type": "integer",
            "minimum": 0
          },
          "status": {
            "enum": [
              "assumption",
              "unvalidated"
            ]
          },
          "show_if": {
            "type": "object",
            "properties": {
              "question_id": {
                "type": "string",
                "minLength": 1
              },
              "equals": {
                "type": "boolean"
              }
            },
            "required": [
              "question_id",
              "equals"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "label",
          "type",
          "required"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "pack_id",
    "pack_version",
    "questions"
  ],
  "additionalProperties": false
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.