{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/huggingbay-xyz/json-schema/huggingbay-xyz-mirror-catalog-request-schema.json",
  "title": "MirrorCatalogRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/huggingbay-xyz-mirror-requests-api-openapi.yml#/components/schemas/MirrorCatalogRequest",
  "properties": {
    "artifact_id": {
      "type": "string",
      "maxLength": 193,
      "minLength": 2,
      "pattern": "^(?:[A-Za-z0-9][A-Za-z0-9._-]{1,159}|[A-Za-z0-9](?:[A-Za-z0-9._-]{0,94}[A-Za-z0-9])?/[A-Za-z0-9](?:[A-Za-z0-9._-]{0,94}[A-Za-z0-9])?)$",
      "title": "Artifact Id",
      "description": "Canonical catalog id, or a natural Hugging Face owner/name. Natural owner/name is resolved internally to the canonical artifact id; for example, sentence-transformers/all-MiniLM-L6-v2."
    },
    "desired_files": {
      "anyOf": [
        {
          "items": {
            "type": "string",
            "maxLength": 260,
            "minLength": 1
          },
          "type": "array",
          "maxItems": 20
        },
        {
          "type": "null"
        }
      ],
      "title": "Desired Files"
    },
    "use_case": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Use Case"
    },
    "target_tool": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ],
      "title": "Target Tool"
    },
    "source_route": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Route"
    },
    "contact": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 240
        },
        {
          "type": "null"
        }
      ],
      "title": "Contact"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "artifact_id"
  ]
}