{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://yeet-semantic-purifier.spidron.chatgpt.site/toolkit/brief-schema.json",
  "title": "YEET source-based project brief",
  "type": "object",
  "required": [
    "version",
    "source",
    "fields",
    "missing"
  ],
  "properties": {
    "version": {
      "type": "string"
    },
    "source": {
      "type": "string",
      "maxLength": 18000
    },
    "missing": {
      "type": "array",
      "items": {
        "enum": [
          "goal",
          "audience",
          "deliverables",
          "constraints",
          "deadline",
          "success"
        ]
      }
    },
    "fields": {
      "type": "object",
      "required": [
        "goal",
        "audience",
        "deliverables",
        "constraints",
        "deadline",
        "success",
        "decisions",
        "unassigned"
      ],
      "properties": {
        "goal": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "text",
              "start",
              "label"
            ],
            "properties": {
              "text": {
                "type": "string"
              },
              "start": {
                "type": "integer",
                "minimum": 0
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "additionalProperties": false
          }
        },
        "audience": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "text",
              "start",
              "label"
            ],
            "properties": {
              "text": {
                "type": "string"
              },
              "start": {
                "type": "integer",
                "minimum": 0
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "additionalProperties": false
          }
        },
        "deliverables": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "text",
              "start",
              "label"
            ],
            "properties": {
              "text": {
                "type": "string"
              },
              "start": {
                "type": "integer",
                "minimum": 0
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "additionalProperties": false
          }
        },
        "constraints": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "text",
              "start",
              "label"
            ],
            "properties": {
              "text": {
                "type": "string"
              },
              "start": {
                "type": "integer",
                "minimum": 0
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "additionalProperties": false
          }
        },
        "deadline": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "text",
              "start",
              "label"
            ],
            "properties": {
              "text": {
                "type": "string"
              },
              "start": {
                "type": "integer",
                "minimum": 0
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "additionalProperties": false
          }
        },
        "success": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "text",
              "start",
              "label"
            ],
            "properties": {
              "text": {
                "type": "string"
              },
              "start": {
                "type": "integer",
                "minimum": 0
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "additionalProperties": false
          }
        },
        "decisions": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "text",
              "start",
              "label"
            ],
            "properties": {
              "text": {
                "type": "string"
              },
              "start": {
                "type": "integer",
                "minimum": 0
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "additionalProperties": false
          }
        },
        "unassigned": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "text",
              "start",
              "label"
            ],
            "properties": {
              "text": {
                "type": "string"
              },
              "start": {
                "type": "integer",
                "minimum": 0
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "additionalProperties": false
          }
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}
