{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/talend/json-schema/talend-custom-attribute-value-dataset-response-schema.json",
  "title": "CustomAttributeValueDatasetResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/talend-dataset-api-openapi.yml#/components/schemas/CustomAttributeValueDatasetResponse",
  "type": "object",
  "required": [
    "data",
    "paging"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AttributeValue"
      }
    },
    "paging": {
      "$ref": "#/$defs/Paging"
    }
  },
  "$defs": {
    "AttributeValue": {
      "type": "object",
      "required": [
        "id",
        "label"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "UUID"
        },
        "label": {
          "type": "string",
          "description": "Label of the attribute"
        },
        "category": {
          "type": "string",
          "description": "Category of the attribute",
          "enum": [
            "custom",
            "built-in"
          ]
        },
        "values": {
          "type": "array",
          "description": "Current value for the attribute on this dataset",
          "items": {
            "type": "string"
          }
        },
        "isDefault": {
          "type": "boolean",
          "description": "Indicates if the current value for this dataset matches the default value of the attribute"
        },
        "businessId": {
          "type": "string",
          "description": "Business id"
        }
      }
    },
    "Paging": {
      "type": "object",
      "required": [
        "limit",
        "offset",
        "total"
      ],
      "properties": {
        "limit": {
          "type": "integer",
          "format": "int32",
          "description": "Limit the number of elements returned"
        },
        "offset": {
          "type": "integer",
          "format": "int32",
          "description": "The number of rows to ignore before the beginning of the result set"
        },
        "total": {
          "type": "integer",
          "format": "int32",
          "description": "The total number of elements"
        }
      }
    }
  }
}