{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-ansible-automation-platform/json-schema/red-hat-ansible-automation-platform-collection-one-shot-schema.json",
  "title": "CollectionOneShot",
  "description": "A serializer for the Collection One Shot Upload API.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-ansible-automation-platform-ansible-collections-api-openapi.yml#/components/schemas/CollectionOneShot",
  "type": "object",
  "properties": {
    "file": {
      "type": "string",
      "format": "binary",
      "description": "The Collection tarball."
    },
    "sha256": {
      "type": "string",
      "minLength": 1,
      "description": "An optional sha256 checksum of the uploaded file."
    },
    "expected_namespace": {
      "type": "string",
      "minLength": 1,
      "description": "The expected 'namespace' of the Collection to be verified against the metadata during import."
    },
    "expected_name": {
      "type": "string",
      "minLength": 1,
      "description": "The expected 'name' of the Collection to be verified against the metadata during import."
    },
    "expected_version": {
      "type": "string",
      "minLength": 1,
      "description": "The expected version of the Collection to be verified against the metadata during import."
    }
  },
  "required": [
    "file"
  ]
}