{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Saved company extraction",
  "type": "object",
  "properties": {
    "industry": {
      "type": [
        "string",
        "null"
      ]
    },
    "headcount": {
      "type": [
        "integer",
        "null"
      ]
    },
    "region": {
      "type": [
        "string",
        "null"
      ]
    },
    "value_prop": {
      "type": [
        "string",
        "null"
      ]
    },
    "row_id": {
      "type": "string"
    },
    "evidence": {
      "type": "object",
      "properties": {
        "industry": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "object",
              "properties": {
                "source_id": {
                  "type": "string"
                },
                "quote": {
                  "type": "string"
                }
              },
              "required": [
                "source_id",
                "quote"
              ],
              "additionalProperties": false
            }
          ]
        },
        "headcount": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "object",
              "properties": {
                "source_id": {
                  "type": "string"
                },
                "quote": {
                  "type": "string"
                }
              },
              "required": [
                "source_id",
                "quote"
              ],
              "additionalProperties": false
            }
          ]
        },
        "region": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "object",
              "properties": {
                "source_id": {
                  "type": "string"
                },
                "quote": {
                  "type": "string"
                }
              },
              "required": [
                "source_id",
                "quote"
              ],
              "additionalProperties": false
            }
          ]
        },
        "value_prop": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "object",
              "properties": {
                "source_id": {
                  "type": "string"
                },
                "quote": {
                  "type": "string"
                }
              },
              "required": [
                "source_id",
                "quote"
              ],
              "additionalProperties": false
            }
          ]
        }
      },
      "required": [
        "industry",
        "headcount",
        "region",
        "value_prop"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "row_id",
    "industry",
    "headcount",
    "region",
    "value_prop",
    "evidence"
  ],
  "additionalProperties": false
}
