{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/callidus-legal-ai/json-schema/callidus-legal-ai-addin-reference-doc-schema.json",
  "title": "AddinReferenceDoc",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/callidus-legal-ai-contract-api-openapi.yml#/components/schemas/AddinReferenceDoc",
  "properties": {
    "document": {
      "type": "string",
      "title": "Document"
    },
    "paragraphs": {
      "items": {
        "additionalProperties": {
          "type": "string"
        },
        "type": "object"
      },
      "type": "array",
      "title": "Paragraphs"
    },
    "outline": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Outline"
    },
    "contract_type": {
      "type": "string",
      "title": "Contract Type"
    },
    "industry": {
      "type": "string",
      "title": "Industry"
    },
    "party1": {
      "type": "string",
      "title": "Party1"
    },
    "party1_defined": {
      "type": "string",
      "title": "Party1 Defined"
    },
    "party2": {
      "type": "string",
      "title": "Party2"
    },
    "party2_defined": {
      "type": "string",
      "title": "Party2 Defined"
    },
    "governing_law": {
      "type": "string",
      "title": "Governing Law"
    },
    "general_guidance": {
      "type": "string",
      "title": "General Guidance"
    },
    "favor_level": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "title": "Favor Level"
    },
    "length_level": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "title": "Length Level"
    },
    "country": {
      "type": "string",
      "title": "Country"
    },
    "writing_style": {
      "type": "string",
      "enum": [
        "Simple Plain Language",
        "Modern Legal Writing",
        "Traditional Legal Writing",
        ""
      ],
      "title": "Writing Style"
    },
    "use_advanced_model": {
      "type": "boolean",
      "title": "Use Advanced Model"
    },
    "document_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Document Type"
    },
    "is_same_type": {
      "type": "boolean",
      "title": "Is Same Type"
    },
    "priorities": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Priorities"
    }
  },
  "type": "object",
  "required": [
    "document",
    "paragraphs",
    "outline",
    "contract_type",
    "industry",
    "party1",
    "party1_defined",
    "party2",
    "party2_defined",
    "governing_law",
    "general_guidance",
    "favor_level",
    "length_level",
    "country",
    "writing_style",
    "use_advanced_model",
    "document_type",
    "is_same_type"
  ]
}