{
  "$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-sync-list-response-schema.json",
  "title": "SyncListResponse",
  "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-my-synclists-api-openapi.yml#/components/schemas/SyncListResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "maxLength": 64
    },
    "policy": {
      "$ref": "#/$defs/Policy8baEnum"
    },
    "upstream_repository": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "repository": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "readOnly": true
    },
    "distribution": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "collections": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SyncListCollectionSummaryResponse"
      }
    },
    "namespaces": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "groups": {
      "type": "string"
    }
  },
  "required": [
    "collections",
    "groups",
    "name",
    "namespaces"
  ],
  "$defs": {
    "Policy8baEnum": {
      "enum": [
        "exclude",
        "include"
      ],
      "type": "string",
      "description": "* `exclude` - exclude\n* `include` - include"
    },
    "SyncListCollectionSummaryResponse": {
      "type": "object",
      "properties": {
        "namespace": {
          "type": "string",
          "maxLength": 64
        },
        "name": {
          "type": "string",
          "maxLength": 64
        }
      },
      "required": [
        "name",
        "namespace"
      ]
    }
  }
}