{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/talend/json-schema/talend-dataset-response-schema.json",
  "title": "DatasetResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/talend-dataset-api-openapi.yml#/components/schemas/DatasetResponse",
  "type": "object",
  "required": [
    "label",
    "version"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "UUID"
    },
    "label": {
      "type": "string",
      "description": "Label of the dataset"
    },
    "certification": {
      "type": "string",
      "description": "Certification status",
      "enum": [
        "certified",
        "none",
        "pending"
      ]
    },
    "entitlements": {
      "type": "array",
      "description": "Intersection of TMC user entitlements and the user sharing entitlements",
      "items": {
        "type": "string"
      }
    },
    "enabled": {
      "type": "boolean",
      "description": "Indicates if the dataset is enabled or not"
    },
    "version": {
      "type": "integer",
      "format": "int32",
      "description": "Technical version of the dataset"
    },
    "datastoreId": {
      "type": "string",
      "description": "Id of the connection used for the dataset"
    },
    "datastore": {
      "$ref": "#/$defs/ConnectionInfo"
    },
    "properties": {
      "type": "object",
      "description": "Configuration of the dataset"
    },
    "owner": {
      "type": "string",
      "description": "Id of the user who owns the dataset"
    },
    "creator": {
      "type": "string",
      "description": "Full name of the user who created the dataset"
    },
    "rating": {
      "$ref": "#/$defs/RatingInfo"
    },
    "draft": {
      "type": "boolean",
      "description": "Indicates if the dataset is a draft"
    },
    "sharing": {
      "$ref": "#/$defs/SharingState"
    },
    "favorite": {
      "type": "boolean",
      "description": "Indicates if the dataset is a favorite"
    },
    "talendGlobalQuality": {
      "$ref": "#/$defs/TalendQuality"
    },
    "trustScore": {
      "type": "number",
      "format": "double",
      "description": "Trust score of the dataset"
    },
    "trustScoreAxes": {
      "type": "array",
      "description": "Trust score details for the dataset",
      "items": {
        "$ref": "#/$defs/TrustScoreAxis"
      }
    },
    "nested": {
      "type": "boolean",
      "description": "Indicates if the dataset is hierarchical"
    },
    "created": {
      "type": "number",
      "description": "Creation timestamp of the dataset"
    },
    "updated": {
      "type": "string",
      "description": "Last update timestamp of the dataset"
    },
    "createdBy": {
      "type": "object",
      "description": "User who created the dataset",
      "properties": {
        "id": {
          "type": "string",
          "description": "UUID"
        }
      }
    },
    "updatedBy": {
      "type": "object",
      "description": "User who last updated the dataset",
      "properties": {
        "id": {
          "type": "string",
          "description": "UUID"
        }
      }
    }
  },
  "$defs": {
    "ConnectionInfo": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "ID of the connection used for this dataset"
        },
        "label": {
          "type": "string",
          "description": "Label of the connection"
        },
        "type": {
          "type": "string",
          "description": "Id of the connection type"
        },
        "typeLabel": {
          "type": "string",
          "description": "Label of the connection type"
        },
        "cloudAgentId": {
          "type": "string",
          "description": "ID of the engine used by this connection"
        },
        "icon": {
          "type": "string",
          "description": "Icon identifier of this connection"
        }
      }
    },
    "RatingInfo": {
      "type": "object",
      "properties": {
        "contributors": {
          "type": "integer",
          "format": "int32",
          "description": "Number of users who contributed to this rating"
        },
        "global": {
          "type": "number",
          "format": "double",
          "description": "Value of the rating"
        }
      }
    },
    "SharingState": {
      "type": "object",
      "required": [
        "isOwner",
        "isSharedWithOthers"
      ],
      "properties": {
        "isOwner": {
          "type": "boolean",
          "description": "Indicates if the current user is the owner of the dataset"
        },
        "isSharedWithOthers": {
          "type": "boolean",
          "description": "Indicates if this dataset is shared with other users or groups"
        }
      }
    },
    "TalendQuality": {
      "type": "object",
      "required": [
        "-1",
        "0",
        "1",
        "total"
      ],
      "properties": {
        "-1": {
          "type": "integer",
          "format": "int32",
          "description": "Number of invalid values in the dataset sample"
        },
        "0": {
          "type": "integer",
          "format": "int32",
          "description": "Number of empty values in the dataset sample"
        },
        "1": {
          "type": "integer",
          "format": "int32",
          "description": "Number of valid values in the dataset sample"
        },
        "total": {
          "type": "integer",
          "format": "int32",
          "description": "Total number of values in the dataset sample"
        }
      }
    },
    "TrustScoreAxis": {
      "type": "object",
      "required": [
        "id",
        "label"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Identifier of the axis"
        },
        "label": {
          "type": "string",
          "description": "Label of the axis"
        },
        "description": {
          "type": "string"
        },
        "currentValue": {
          "type": "number",
          "description": "Value for this axis"
        },
        "maxValue": {
          "type": "number",
          "description": "Max value for this axis"
        }
      }
    }
  }
}