{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-ai-foundry/json-schema/azure-ai-foundry-training-result-schema.json",
  "title": "TrainingResult",
  "description": "Training result of a container",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/azure-ai-foundry-largefacelists-api-openapi.yml#/components/schemas/TrainingResult",
  "type": "object",
  "properties": {
    "status": {
      "$ref": "#/$defs/OperationStatus",
      "description": "Training status of the container."
    },
    "createdDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "A combined UTC date and time string that describes the created time of the person group, large person group or large face list."
    },
    "lastActionDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "A combined UTC date and time string that describes the last modify time of the person group, large person group or large face list, could be null value when the group is not successfully trained."
    },
    "lastSuccessfulTrainingDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "A combined UTC date and time string that describes the last successful training time of the person group, large person group or large face list."
    },
    "message": {
      "type": "string",
      "description": "Show failure message when training failed (omitted when training succeed)."
    }
  },
  "required": [
    "status",
    "createdDateTime",
    "lastActionDateTime",
    "lastSuccessfulTrainingDateTime"
  ],
  "$defs": {
    "OperationStatus": {
      "type": "string",
      "description": "The status of long running operation.",
      "enum": [
        "notStarted",
        "running",
        "succeeded",
        "failed"
      ],
      "x-ms-enum": {
        "name": "OperationStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "notStarted",
            "value": "notStarted",
            "description": "The operation is not started."
          },
          {
            "name": "running",
            "value": "running",
            "description": "The operation is still running."
          },
          {
            "name": "succeeded",
            "value": "succeeded",
            "description": "The operation is succeeded."
          },
          {
            "name": "failed",
            "value": "failed",
            "description": "The operation is failed."
          }
        ]
      }
    }
  }
}