{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-create-recommender-schema-request-schema.json",
  "title": "CreateRecommenderSchemaRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-recommender-schemas-api-openapi.yml#/components/schemas/CreateRecommenderSchemaRequest",
  "type": "object",
  "properties": {
    "DomainName": {
      "type": "string",
      "description": "The unique name of the domain."
    },
    "RecommenderSchemaName": {
      "type": "string",
      "description": "The name of the recommender schema. The name must be unique within the domain."
    },
    "Fields": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/RecommenderSchemaField"
        }
      },
      "description": "A map of dataset type to column definitions that specifies which data columns to include in the schema. The _webAnalytics and _catalogItem keys are supported."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags used to organize, track, or control access for this resource."
    }
  },
  "required": [
    "DomainName",
    "RecommenderSchemaName",
    "Fields"
  ],
  "$defs": {
    "RecommenderSchemaField": {
      "type": "object",
      "properties": {
        "TargetFieldName": {
          "type": "string",
          "description": "The name of the target field in the dataset, such as Location.City or Attributes.MealTime."
        },
        "ContentType": {
          "type": "string",
          "enum": [
            "STRING",
            "NUMBER"
          ],
          "description": "The data type of the column value. Valid values are String and Number. The default value is String."
        },
        "FeatureType": {
          "type": "string",
          "enum": [
            "TEXTUAL",
            "CATEGORICAL"
          ],
          "description": "How the column is treated for model training. Valid values are CATEGORICAL and TEXTUAL."
        }
      },
      "required": [
        "TargetFieldName"
      ]
    }
  }
}