{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/corvio-ai/json-schema/corvio-ai-public-sync-conflict-response-schema.json",
  "title": "PublicSyncConflictResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/corvio-ai-public-api-v1-local-markdown-sync-api-openapi.yml#/components/schemas/PublicSyncConflictResponse",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "source_id": {
      "type": "string",
      "format": "uuid",
      "title": "Source Id"
    },
    "relative_path": {
      "type": "string",
      "title": "Relative Path"
    },
    "conflict_type": {
      "type": "string",
      "title": "Conflict Type"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "detail": {
      "additionalProperties": true,
      "type": "object",
      "title": "Detail"
    },
    "remote": {
      "anyOf": [
        {
          "$ref": "#/$defs/PublicSyncRemoteItem"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "source_id",
    "relative_path",
    "conflict_type",
    "status",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "PublicSyncRemoteItem": {
      "properties": {
        "page_id": {
          "type": "string",
          "format": "uuid",
          "title": "Page Id"
        },
        "node_id": {
          "type": "string",
          "format": "uuid",
          "title": "Node Id"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "relative_path": {
          "type": "string",
          "title": "Relative Path"
        },
        "markdown": {
          "type": "string",
          "title": "Markdown"
        },
        "content_sha256": {
          "type": "string",
          "title": "Content Sha256",
          "description": "Lowercase hexadecimal SHA-256 of the returned markdown encoded as UTF-8, including whitespace and line endings."
        },
        "content_revision": {
          "type": "integer",
          "title": "Content Revision"
        }
      },
      "type": "object",
      "required": [
        "page_id",
        "node_id",
        "title",
        "relative_path",
        "markdown",
        "content_sha256",
        "content_revision"
      ],
      "title": "PublicSyncRemoteItem"
    }
  }
}