{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/shipshapedata-com/json-schema/shipshapedata-com-assessment-schema.json",
  "title": "Assessment",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/shipshapedata-com-openapi.json#/components/schemas/Assessment",
  "type": "object",
  "required": [
    "title",
    "sections",
    "bands"
  ],
  "properties": {
    "title": {
      "type": "string"
    },
    "instructions": {
      "type": "string"
    },
    "sections": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "title",
          "key",
          "questions"
        ],
        "properties": {
          "title": {
            "type": "string"
          },
          "key": {
            "type": "string",
            "enum": [
              "strategy",
              "people",
              "data",
              "change"
            ]
          },
          "desc": {
            "type": "string"
          },
          "questions": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "q",
                "opts"
              ],
              "properties": {
                "q": {
                  "type": "string"
                },
                "scored": {
                  "type": "boolean",
                  "description": "false = unscored sizing context"
                },
                "ctx": {
                  "type": "string"
                },
                "opts": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Five options; the answer is the option index 0-4"
                }
              }
            }
          }
        }
      }
    },
    "bands": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "min",
          "name"
        ],
        "properties": {
          "min": {
            "type": "number"
          },
          "name": {
            "type": "string"
          }
        }
      }
    }
  }
}