{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thomson-reuters/main/json-schema/thomson-reuters-custom-view-response-dto-schema.json",
  "title": "CustomViewResponseDTO",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thomson-reuters-blueprint-service-openapi.yml#/components/schemas/CustomViewResponseDTO",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "custom view id",
      "format": "int32"
    },
    "name": {
      "type": "string",
      "description": "name of the custom view"
    },
    "blueprint_id": {
      "type": "integer",
      "description": "blueprint id of the custom view",
      "format": "int32"
    },
    "aggregation": {
      "type": "array",
      "description": "list of custom view aggregation",
      "items": {
        "$ref": "#/$defs/CustomViewAggregation"
      }
    },
    "group_by": {
      "type": "array",
      "description": "list of custom view group by",
      "items": {
        "$ref": "#/$defs/CustomViewGroupBy"
      }
    }
  },
  "$defs": {
    "ConfigDTO": {
      "type": "object",
      "properties": {
        "rollup_id": {
          "type": "integer",
          "format": "int32"
        },
        "root_entity_column": {
          "type": "string"
        },
        "allocation_column": {
          "type": "string"
        }
      }
    },
    "ConfigDTOAggregation": {
      "type": "object",
      "properties": {
        "weighted_on": {
          "type": "string"
        }
      }
    },
    "CustomViewAggregation": {
      "type": "object",
      "properties": {
        "operator": {
          "type": "string"
        },
        "config": {
          "$ref": "#/$defs/ConfigDTOAggregation"
        },
        "display_name": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "source_column": {
          "type": "string"
        }
      },
      "description": "list of custom view aggregation"
    },
    "CustomViewGroupBy": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "config": {
          "$ref": "#/$defs/ConfigDTO"
        },
        "source_column": {
          "type": "string"
        },
        "display_name": {
          "type": "string"
        },
        "ontology_id": {
          "type": "integer",
          "format": "int32"
        }
      },
      "description": "list of custom view group by"
    }
  }
}