{
  "$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-ansible-ansible-namespace-metadata-schema.json",
  "title": "ansible.AnsibleNamespaceMetadata",
  "description": "A serializer for Namespaces.",
  "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-content-namespaces-api-openapi.yml#/components/schemas/ansible.AnsibleNamespaceMetadata",
  "type": "object",
  "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"
  ],
  "$defs": {
    "NamespaceLink": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 32
        },
        "url": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        }
      },
      "required": [
        "name",
        "url"
      ]
    }
  }
}