{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elhub/json-schema/elhub-no-elhub-ds-energy-data-models-response-meta-response-schema.json",
  "title": "MetaResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elhub-meta-api-openapi.yml#/components/schemas/no.elhub.ds.energy.data.models.response.MetaResponse",
  "type": "object",
  "properties": {
    "creationTime": {
      "type": "string",
      "description": "timestamp of this response creation, in yyyy-MM-dd'T'HH:mm:ssXXX format",
      "title": "String"
    },
    "currentLink": {
      "type": [
        "null",
        "string"
      ],
      "description": "link to the current resource",
      "title": "String"
    },
    "entity": {
      "description": "Entity dataset",
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/no.elhub.ds.energy.data.models.EntityMeta"
        }
      ]
    },
    "lastUpdatedTime": {
      "type": "string",
      "description": "timestamp for the last update time of this response's content, in yyyy-MM-dd'T'HH:mm:ssXXX format",
      "title": "String"
    }
  },
  "required": [
    "creationTime",
    "lastUpdatedTime"
  ],
  "$defs": {
    "no.elhub.ds.energy.data.models.DataSetFilter": {
      "type": "object",
      "properties": {
        "defaultValue": {
          "type": [
            "null",
            "string"
          ],
          "description": "Default value for the filter",
          "title": "String"
        },
        "name": {
          "type": "string",
          "description": "Filter parameter name",
          "title": "String"
        },
        "values": {
          "type": [
            "null",
            "string"
          ],
          "description": "Allowed values for the filter",
          "title": "String"
        }
      },
      "required": [
        "name"
      ],
      "title": "DataSetFilter"
    },
    "no.elhub.ds.energy.data.models.DataSetMeta": {
      "type": "object",
      "properties": {
        "audiences": {
          "type": "array",
          "description": "User roles that may find this dataset relevant",
          "items": {
            "type": "string",
            "title": "String"
          },
          "title": "Set<String>",
          "uniqueItems": true
        },
        "columns": {
          "type": "array",
          "description": "List of database columns",
          "items": {
            "$ref": "#/$defs/no.elhub.ds.energy.data.models.DatasetAttributes"
          },
          "title": "List<DatasetAttributes>"
        },
        "datePolicyWithId": {
          "type": [
            "null",
            "string"
          ],
          "description": "Date policy used when request contains an entity id",
          "title": "String"
        },
        "datePolicyWithoutId": {
          "type": [
            "null",
            "string"
          ],
          "description": "Date policy used when request does not contain an entity id",
          "title": "String"
        },
        "description": {
          "type": [
            "null",
            "string"
          ],
          "description": "Dataset description",
          "title": "String"
        },
        "exportable": {
          "type": "boolean",
          "description": "Is the dataset exportable",
          "title": "Boolean"
        },
        "filters": {
          "type": [
            "null",
            "array"
          ],
          "description": "Filters",
          "items": {
            "$ref": "#/$defs/no.elhub.ds.energy.data.models.DataSetFilter"
          },
          "title": "List<DataSetFilter>"
        },
        "maxDateRange": {
          "type": "string",
          "description": "Maximum date range",
          "title": "String"
        },
        "name": {
          "type": [
            "null",
            "string"
          ],
          "description": "Dataset name",
          "title": "String"
        },
        "openDataSet": {
          "type": [
            "null",
            "boolean"
          ],
          "description": "Is the dataset open to access",
          "title": "Boolean"
        },
        "resolution": {
          "type": "string",
          "description": "Dataset resolution: can be daily, hourly, etc.",
          "title": "String"
        },
        "routeAvailability": {
          "$ref": "#/$defs/no.elhub.ds.energy.data.models.RouteAvailability",
          "description": "Route availability"
        },
        "scopes": {
          "type": [
            "null",
            "array"
          ],
          "description": "Scopes",
          "items": {
            "type": "string",
            "title": "String"
          },
          "title": "List<String>"
        },
        "topics": {
          "type": "array",
          "description": "Topics covered by this dataset",
          "items": {
            "type": "string",
            "title": "String"
          },
          "title": "Set<String>",
          "uniqueItems": true
        }
      },
      "required": [
        "audiences",
        "columns",
        "exportable",
        "maxDateRange",
        "resolution",
        "routeAvailability",
        "topics"
      ],
      "title": "DataSetMeta"
    },
    "no.elhub.ds.energy.data.models.DatasetAttributes": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string",
          "title": "String"
        },
        "name": {
          "type": "string",
          "title": "String"
        },
        "type": {
          "type": "string",
          "title": "String"
        }
      },
      "required": [
        "description",
        "name",
        "type"
      ],
      "title": "DatasetAttributes"
    },
    "no.elhub.ds.energy.data.models.EntityMeta": {
      "type": "object",
      "properties": {
        "datasets": {
          "type": [
            "null",
            "array"
          ],
          "description": "List of datasets",
          "items": {
            "$ref": "#/$defs/no.elhub.ds.energy.data.models.DataSetMeta"
          },
          "title": "List<DataSetMeta>"
        },
        "description": {
          "type": [
            "null",
            "string"
          ],
          "description": "Short description for the entity",
          "title": "String"
        },
        "id": {
          "type": [
            "null",
            "string"
          ],
          "description": "Entity identification string",
          "title": "String"
        },
        "noOfDataSets": {
          "type": [
            "null",
            "integer"
          ],
          "format": "int32",
          "description": "Number of datasets belonging to this entity",
          "title": "Int"
        }
      },
      "title": "EntityMeta"
    },
    "no.elhub.ds.energy.data.models.RouteAvailability": {
      "type": "string",
      "enum": [
        "ALL",
        "BASE",
        "ID"
      ],
      "title": "RouteAvailability"
    }
  }
}