{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/jitprompt-com/json-schema/jitprompt-com-document-schema.json",
  "title": "Document",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/jitprompt-com-openapi.json#/components/schemas/Document",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "namespace_id": {
      "type": "string",
      "format": "uuid",
      "title": "Namespace Id"
    },
    "title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Title"
    },
    "summary": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Summary"
    },
    "source_name": {
      "type": "string",
      "title": "Source Name"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "parsing",
        "structuring",
        "embedding",
        "ready",
        "failed"
      ],
      "title": "Status"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    },
    "section_count": {
      "type": "integer",
      "title": "Section Count"
    }
  },
  "type": "object",
  "required": [
    "id",
    "namespace_id",
    "title",
    "summary",
    "source_name",
    "status",
    "error",
    "created_at",
    "updated_at",
    "section_count"
  ]
}