{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thomson-reuters/main/json-schema/thomson-reuters-api-collection-template-meta-schema.json",
  "title": "ApiCollectionTemplateMeta",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thomson-reuters-schematic-service-openapi.yml#/components/schemas/ApiCollectionTemplateMeta",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TemplateMeta"
      }
    },
    "_meta": {
      "$ref": "#/$defs/ApiMeta"
    }
  },
  "$defs": {
    "ApiMeta": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer",
          "format": "int64"
        },
        "limit": {
          "type": "integer",
          "format": "int32"
        },
        "offset": {
          "type": "integer",
          "format": "int32"
        },
        "sort": {
          "type": "string"
        },
        "filter": {
          "type": "string"
        },
        "extra": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          },
          "writeOnly": true
        }
      }
    },
    "BlueprintId": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "Unique identifier of the Blueprint",
          "format": "int32"
        },
        "version": {
          "type": "integer",
          "description": "Version of the Blueprint",
          "format": "int32"
        },
        "type_id": {
          "type": "integer",
          "description": "Unique identifier of the Blueprint type",
          "format": "int32"
        }
      }
    },
    "Source": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "Type of the file"
        },
        "delimiter": {
          "type": "string",
          "description": "delimiter of the file"
        },
        "named_range": {
          "type": "string",
          "description": "Range in the Worksheet"
        },
        "worksheet_name": {
          "type": "string",
          "description": "Name of the Worksheet"
        },
        "worksheet_index": {
          "type": "integer",
          "description": "Work Sheet index in the Excel file",
          "format": "int32"
        },
        "cell_range": {
          "type": "string",
          "description": "cell Range in the Excel file"
        }
      }
    },
    "TemplateMeta": {
      "required": [
        "name"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier of the Template"
        },
        "name": {
          "type": "string",
          "description": "Label of the Template"
        },
        "blueprint": {
          "$ref": "#/$defs/BlueprintId"
        },
        "source": {
          "$ref": "#/$defs/Source"
        },
        "is_hidden": {
          "type": "boolean",
          "description": "Visibility of the Template"
        },
        "created_by": {
          "type": "string"
        },
        "mapped_column_count": {
          "type": "integer",
          "description": "Total number of mapped columns in the template",
          "format": "int32"
        },
        "enrich_column_count": {
          "type": "integer",
          "description": "Total number of enrich columns in the template",
          "format": "int32"
        },
        "created_date": {
          "type": "string",
          "description": "Template Created Date & time",
          "format": "date-time"
        },
        "revision_id": {
          "type": "integer",
          "description": "Template revision id",
          "format": "int64"
        }
      }
    }
  }
}