{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudmersive/json-schema/cloudmersive-document-taxonomy-result-schema.json",
  "title": "DocumentTaxonomyResult",
  "description": "The business document taxonomy, as nested domains, categories, and subtypes",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudmersive-ontology-api-openapi.yml#/components/schemas/DocumentTaxonomyResult",
  "type": "object",
  "properties": {
    "Successful": {
      "description": "True if successful, false otherwise",
      "type": "boolean"
    },
    "Domains": {
      "description": "Top-level domains of the taxonomy (for example, finance, legal, logistics)",
      "type": "array",
      "items": {
        "$ref": "#/$defs/TaxonomyDomainNode"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "TaxonomyCategoryNode": {
      "description": "A category within a domain (the first two segments of an ontology code)",
      "type": "object",
      "properties": {
        "Code": {
          "description": "Category code, the first two segments of an ontology code (for example, finance.invoice)",
          "type": "string"
        },
        "Label": {
          "description": "Human-readable display label (for example, Invoices)",
          "type": "string"
        },
        "Subtypes": {
          "description": "Document subtypes within this category",
          "type": "array",
          "items": {
            "$ref": "#/$defs/TaxonomySubtypeNode"
          }
        }
      },
      "additionalProperties": false
    },
    "TaxonomyDomainNode": {
      "description": "A top-level domain of the business document taxonomy",
      "type": "object",
      "properties": {
        "Code": {
          "description": "Domain code, the first segment of an ontology code (for example, finance)",
          "type": "string"
        },
        "Label": {
          "description": "Human-readable display label (for example, Finance)",
          "type": "string"
        },
        "Categories": {
          "description": "Categories within this domain",
          "type": "array",
          "items": {
            "$ref": "#/$defs/TaxonomyCategoryNode"
          }
        }
      },
      "additionalProperties": false
    },
    "TaxonomySubtypeNode": {
      "description": "A document subtype (a full taxonomy leaf code)",
      "type": "object",
      "properties": {
        "Code": {
          "description": "The full ontology code (for example, finance.invoice.vendor_invoice)",
          "type": "string"
        },
        "Label": {
          "description": "Human-readable display label (the subtype description, for example, \"Vendor / supplier invoice (AP)\")",
          "type": "string"
        }
      },
      "additionalProperties": false
    }
  }
}