{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/corvio-ai/json-schema/corvio-ai-public-sync-push-request-schema.json",
  "title": "PublicSyncPushRequest",
  "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/PublicSyncPushRequest",
  "properties": {
    "source_id": {
      "type": "string",
      "format": "uuid",
      "title": "Source Id"
    },
    "relative_path": {
      "type": "string",
      "maxLength": 1024,
      "minLength": 1,
      "title": "Relative Path"
    },
    "markdown": {
      "type": "string",
      "maxLength": 120000,
      "title": "Markdown"
    },
    "content_sha256": {
      "type": "string",
      "maxLength": 64,
      "minLength": 64,
      "title": "Content Sha256",
      "description": "Lowercase hexadecimal SHA-256 of the exact markdown field encoded as UTF-8, including whitespace and line endings. A mismatch is rejected; this is not a credential or revision guard."
    },
    "mtime_ms": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Mtime Ms"
    },
    "page_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Page Id"
    },
    "expected_content_revision": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Expected Content Revision"
    },
    "conflict_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Conflict Id"
    }
  },
  "type": "object",
  "required": [
    "source_id",
    "relative_path",
    "markdown",
    "content_sha256"
  ]
}