{
  "$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-paginatedansible-ansible-namespace-metadata-response-list-schema.json",
  "title": "Paginatedansible.AnsibleNamespaceMetadataResponseList",
  "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-namespaces-api-openapi.yml#/components/schemas/Paginatedansible.AnsibleNamespaceMetadataResponseList",
  "type": "object",
  "required": [
    "count",
    "results"
  ],
  "properties": {
    "count": {
      "type": "integer"
    },
    "next": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "previous": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ansible.AnsibleNamespaceMetadataResponse"
      }
    }
  },
  "$defs": {
    "NamespaceLinkResponse": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "maxLength": 32
        },
        "url": {
          "type": "string",
          "maxLength": 256
        }
      },
      "required": [
        "name",
        "url"
      ]
    },
    "ansible.AnsibleNamespaceMetadataResponse": {
      "type": "object",
      "description": "A serializer for Namespaces.",
      "properties": {
        "pulp_href": {
          "type": "string",
          "format": "uri",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Required named, only accepts lowercase, numbers and underscores.",
          "maxLength": 64,
          "minLength": 3,
          "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/NamespaceLinkResponse"
          },
          "description": "Labeled related links."
        },
        "avatar_sha256": {
          "type": "string",
          "readOnly": true,
          "description": "SHA256 digest of avatar image if present.",
          "maxLength": 64
        },
        "avatar_url": {
          "type": "string",
          "readOnly": true,
          "description": "Download link for avatar image if present."
        },
        "metadata_sha256": {
          "type": "string",
          "readOnly": true
        }
      },
      "required": [
        "name"
      ]
    }
  }
}