{
  "$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-version-search-list-schema.json",
  "title": "CollectionVersionSearchList",
  "description": "Cross-repo search results.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-ansible-automation-platform-api-content-v3-plugin-ansible-search-collection-versions-api-openapi.yml#/components/schemas/CollectionVersionSearchList",
  "type": "object",
  "properties": {
    "repository": {
      "$ref": "#/$defs/Repository"
    },
    "collection_version": {
      "$ref": "#/$defs/CollectionSummary"
    },
    "namespace_metadata": {
      "allOf": [
        {
          "$ref": "#/$defs/ansible.AnsibleNamespaceMetadata"
        }
      ]
    },
    "is_highest": {
      "type": "boolean"
    },
    "is_deprecated": {
      "type": "boolean"
    },
    "is_signed": {
      "type": "boolean"
    }
  },
  "required": [
    "collection_version",
    "is_deprecated",
    "is_highest",
    "is_signed",
    "namespace_metadata",
    "repository"
  ],
  "$defs": {
    "CollectionSummary": {
      "type": "object",
      "description": "Collection Version serializer without docs blob.",
      "properties": {}
    },
    "NamespaceLink": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 32
        },
        "url": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        }
      },
      "required": [
        "name",
        "url"
      ]
    },
    "Repository": {
      "type": "object",
      "description": "Base serializer for use with :class:`pulpcore.app.models.Model`\n\nThis ensures that all Serializers provide values for the 'pulp_href` field.\n\nThe class provides a default for the ``ref_name`` attribute in the\nModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions\nof plugins are namespaced properly.",
      "properties": {
        "pulp_labels": {
          "type": "object",
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "description": "A unique name for this repository."
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "description": "An optional description."
        },
        "retain_repo_versions": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64",
          "description": "Retain X versions of the repository. Default is null which retains all versions.",
          "minimum": 1
        },
        "remote": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "An optional remote to use by default when syncing."
        }
      },
      "required": [
        "name"
      ]
    },
    "ansible.AnsibleNamespaceMetadata": {
      "type": "object",
      "description": "A serializer for Namespaces.",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 3,
          "description": "Required named, only accepts lowercase, numbers and underscores.",
          "maxLength": 64,
          "pattern": "^(?!.*__)[a-z]+[0-9a-z_]*$"
        },
        "company": {
          "type": "string",
          "description": "Optional namespace company owner.",
          "maxLength": 64
        },
        "email": {
          "type": "string",
          "description": "Optional namespace contact email.",
          "maxLength": 256
        },
        "description": {
          "type": "string",
          "description": "Optional short description.",
          "maxLength": 256
        },
        "resources": {
          "type": "string",
          "description": "Optional resource page in markdown format."
        },
        "links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NamespaceLink"
          },
          "description": "Labeled related links."
        },
        "avatar": {
          "type": "string",
          "format": "binary",
          "writeOnly": true,
          "description": "Optional avatar image for Namespace"
        }
      },
      "required": [
        "name"
      ]
    }
  }
}