{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/commareports-com/json-schema/commareports-com-asset-upload-request-schema.json",
  "title": "AssetUploadRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/commareports-com-assets-api-openapi.yml#/components/schemas/AssetUploadRequest",
  "type": "object",
  "properties": {
    "relative_path": {
      "type": "string",
      "maxLength": 512,
      "description": "e.g. 'images/hero.png' — no leading slash, no '.'/'..' segments, no '%', '?' or '#'."
    },
    "content_base64": {
      "type": "string",
      "description": "Base64 bytes ('data:' URL prefix tolerated). Max 25 MB decoded."
    },
    "content_type": {
      "type": "string",
      "maxLength": 120,
      "description": "Defaults to application/octet-stream."
    }
  },
  "required": [
    "relative_path",
    "content_base64"
  ]
}