{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nukez-xyz/json-schema/nukez-xyz-fetch-and-store-request-schema.json",
  "title": "FetchAndStoreRequest",
  "description": "Request body for fetch-and-store (URL mode upload).",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nukez-xyz-openapi.json#/components/schemas/FetchAndStoreRequest",
  "properties": {
    "source_url": {
      "type": "string",
      "title": "Source Url",
      "description": "HTTPS URL to fetch content from"
    },
    "filename": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1,
      "title": "Filename"
    },
    "content_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Content Type",
      "description": "MIME type (auto-inferred from filename if not provided)"
    }
  },
  "type": "object",
  "required": [
    "source_url",
    "filename"
  ]
}