{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tensorflow/json-schema/tensorflow-model-status-response-schema.json",
  "title": "ModelStatusResponse",
  "description": "Response containing the status of a model or model version",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tensorflow-models-api-openapi.yml#/components/schemas/ModelStatusResponse",
  "type": "object",
  "properties": {
    "model_version_status": {
      "type": "array",
      "description": "List of status entries for each model version",
      "items": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "description": "The version number"
          },
          "state": {
            "type": "string",
            "description": "The current state of the model version",
            "enum": [
              "UNKNOWN",
              "START",
              "LOADING",
              "AVAILABLE",
              "UNLOADING",
              "END"
            ]
          },
          "status": {
            "type": "object",
            "properties": {
              "error_code": {
                "type": "string",
                "description": "Error code if any"
              },
              "error_message": {
                "type": "string",
                "description": "Error message if any"
              }
            }
          }
        }
      }
    }
  }
}