{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/dataiku/main/json-schema/dataiku-saved-model-schema.json",
  "title": "SavedModel",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dataiku-saved-models-api-openapi.yml#/components/schemas/SavedModel",
  "type": "object",
  "properties": {
    "projectKey": {
      "type": "string",
      "description": "Project key"
    },
    "id": {
      "type": "string",
      "description": "Saved model identifier"
    },
    "name": {
      "type": "string",
      "description": "Saved model name"
    },
    "type": {
      "type": "string",
      "description": "Model type"
    },
    "activeVersion": {
      "type": "string",
      "description": "Identifier of the active model version"
    },
    "versions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ModelVersion"
      }
    }
  },
  "$defs": {
    "ModelVersion": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Version identifier"
        },
        "active": {
          "type": "boolean",
          "description": "Whether this is the active version"
        },
        "snippet": {
          "type": "object",
          "description": "Summary metrics for the model version"
        }
      }
    }
  }
}