{
  "$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-paginated-distribution-response-list-schema.json",
  "title": "PaginatedDistributionResponseList",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-ansible-automation-platform-api-ui-v1-distributions-api-openapi.yml#/components/schemas/PaginatedDistributionResponseList",
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer"
        }
      }
    },
    "links": {
      "type": "object",
      "properties": {
        "first": {
          "type": [
            "string",
            "null"
          ]
        },
        "previous": {
          "type": [
            "string",
            "null"
          ]
        },
        "next": {
          "type": [
            "string",
            "null"
          ]
        },
        "last": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DistributionResponse"
      }
    }
  },
  "$defs": {
    "DistributionResponse": {
      "type": "object",
      "properties": {
        "pulp_id": {
          "type": "string",
          "format": "uuid",
          "readOnly": true
        },
        "name": {
          "type": "string"
        },
        "base_path": {
          "type": "string"
        },
        "repository": {
          "$ref": "#/$defs/RepositoryResponse"
        }
      },
      "required": [
        "base_path",
        "name",
        "repository"
      ]
    },
    "RepositoryResponse": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "pulp_id": {
          "type": "string",
          "format": "uuid",
          "readOnly": true
        },
        "pulp_last_updated": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "readOnly": true
        },
        "content_count": {
          "type": "integer",
          "readOnly": true
        },
        "gpgkey": {
          "type": "string"
        }
      },
      "required": [
        "gpgkey",
        "name"
      ]
    }
  }
}