{
  "$defs": {
    "ParsedTemplateMethodologyItem": {
      "additionalProperties": false,
      "properties": {
        "order": {
          "minimum": 0,
          "title": "Order",
          "type": "integer"
        },
        "name": {
          "maxLength": 400,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "reference": {
          "title": "Reference",
          "type": "string"
        },
        "category": {
          "title": "Category",
          "type": "string"
        },
        "description": {
          "default": "",
          "title": "Description",
          "type": "string"
        },
        "subcategory": {
          "default": "",
          "title": "Subcategory",
          "type": "string"
        },
        "level": {
          "default": "",
          "title": "Level",
          "type": "string"
        },
        "references": {
          "default": "",
          "title": "References",
          "type": "string"
        },
        "riskrating": {
          "default": "",
          "title": "Riskrating",
          "type": "string"
        },
        "notes": {
          "default": "",
          "title": "Notes",
          "type": "string"
        },
        "guide": {
          "default": "",
          "title": "Guide",
          "type": "string"
        },
        "custom_fields": {
          "description": "Every name must match an enabled methodology item custom field.",
          "items": {
            "$ref": "#/$defs/ParsedTemplateMethodologyItemCustomField"
          },
          "title": "Custom Fields",
          "type": "array"
        }
      },
      "required": [
        "order",
        "name",
        "reference",
        "category"
      ],
      "title": "ParsedTemplateMethodologyItem",
      "type": "object"
    },
    "ParsedTemplateMethodologyItemCustomField": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "title": "Name",
          "type": "string"
        },
        "value": {
          "title": "Value",
          "type": "string"
        }
      },
      "required": [
        "name",
        "value"
      ],
      "title": "ParsedTemplateMethodologyItemCustomField",
      "type": "object"
    }
  },
  "additionalProperties": false,
  "properties": {
    "name": {
      "maxLength": 400,
      "minLength": 1,
      "title": "Name",
      "type": "string"
    },
    "description": {
      "minLength": 1,
      "title": "Description",
      "type": "string"
    },
    "enabled_fields": {
      "items": {
        "enum": [
          "description",
          "subcategory",
          "level",
          "references",
          "riskrating",
          "notes",
          "guide"
        ],
        "type": "string"
      },
      "title": "Enabled Fields",
      "type": "array"
    },
    "status_choices": {
      "items": {
        "enum": [
          "Not Tested",
          "Out of scope",
          "Fail",
          "Partial",
          "Pass"
        ],
        "type": "string"
      },
      "title": "Status Choices",
      "type": "array"
    },
    "categories": {
      "items": {
        "type": "string"
      },
      "title": "Categories",
      "type": "array"
    },
    "items": {
      "items": {
        "$ref": "#/$defs/ParsedTemplateMethodologyItem"
      },
      "title": "Items",
      "type": "array"
    }
  },
  "required": [
    "name",
    "description",
    "items"
  ],
  "title": "ParsedTemplateMethodology",
  "type": "object"
}