{
  "openapi": "3.0.4",
  "info": {
    "title": "Integration API - Database Endpoints",
    "version": "v1"
  },
  "paths": {
    "/api/v1/database/city": {
      "get": {
        "tags": [
          "Database"
        ],
        "summary": "Read all stored V2 municipality series. Requested postal datasets are reported as missing.",
        "operationId": "GetCityFromDatabase",
        "parameters": [
          {
            "name": "postalCodes",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "cityName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "parishCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AreaSeriesToolResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AreaSeriesToolResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AreaSeriesToolResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AreaSeriesToolResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AreaSeriesToolResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AreaSeriesToolResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/v1/database/GetLoanNumbers": {
      "get": {
        "tags": [
          "Database"
        ],
        "operationId": "GetLoanAsync",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DatabaseModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatabaseModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatabaseModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/v1/database/getCities": {
      "get": {
        "tags": [
          "Database"
        ],
        "operationId": "GetAllCities",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/v1/database/getDatasourceData": {
      "get": {
        "tags": [
          "Database"
        ],
        "operationId": "GetDatasourceData",
        "parameters": [
          {
            "name": "datasourceName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DatasourceModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasourceModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasourceModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/v1/database/getMacrodata": {
      "get": {
        "tags": [
          "Database"
        ],
        "operationId": "GetMacroEconomicsData",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DatabaseModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatabaseModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatabaseModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/v1/database/getParish": {
      "get": {
        "tags": [
          "Database"
        ],
        "operationId": "FetchParishData",
        "parameters": [
          {
            "name": "parishCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AreaAnalyticsData"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AreaAnalyticsData"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AreaAnalyticsData"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AreaAnalyticsData": {
        "type": "object",
        "properties": {
          "befolkningHistoryData": {
            "$ref": "#/components/schemas/DskMultiDatasetDto"
          },
          "hustandData": {
            "$ref": "#/components/schemas/DskMultiDatasetDto"
          },
          "hustandChildrenData": {
            "$ref": "#/components/schemas/DskMultiDatasetDto"
          },
          "befolkningData": {
            "$ref": "#/components/schemas/DskDualDatasetDto"
          },
          "boL101Data": {
            "$ref": "#/components/schemas/DskSingleDatasetDto"
          },
          "indkP106Data": {
            "$ref": "#/components/schemas/DskSingleDatasetDto"
          },
          "frkM225Data": {
            "$ref": "#/components/schemas/DskSingleDatasetDto"
          },
          "galderData": {
            "$ref": "#/components/schemas/DskDualDatasetDto"
          },
          "labY01Data": {
            "$ref": "#/components/schemas/DskMultiDatasetDto"
          },
          "labY01TOTData": {
            "$ref": "#/components/schemas/DskMultiDatasetDto"
          },
          "bygV22Data": {
            "$ref": "#/components/schemas/DskMultiDatasetDto"
          },
          "bygV02Data": {
            "$ref": "#/components/schemas/DskMultiDatasetDto"
          },
          "bygvData": {
            "$ref": "#/components/schemas/DskMultiDatasetDto"
          },
          "byG43Data": {
            "$ref": "#/components/schemas/DskDualDatasetDto"
          },
          "energI1Data": {
            "$ref": "#/components/schemas/DskDualDatasetDto"
          },
          "energI3Data": {
            "$ref": "#/components/schemas/DskSingleDatasetDto"
          },
          "priS111Data": {
            "$ref": "#/components/schemas/DskSingleDatasetDto"
          },
          "priS116Data": {
            "$ref": "#/components/schemas/DskSingleDatasetDto"
          },
          "lbesK03Data": {
            "$ref": "#/components/schemas/DskSingleDatasetDto"
          },
          "mpK3Data": {
            "$ref": "#/components/schemas/DskSingleDatasetDto"
          },
          "kM5Data": {
            "$ref": "#/components/schemas/DskSingleDatasetDto"
          },
          "kmgalderData": {
            "$ref": "#/components/schemas/DskDualDatasetDto"
          },
          "kmstA003Data": {
            "$ref": "#/components/schemas/DskSingleDatasetDto"
          },
          "bM010Data": {
            "$ref": "#/components/schemas/DskDualDatasetDto"
          },
          "bM011Data": {
            "$ref": "#/components/schemas/DskSingleDatasetDto"
          },
          "bM020Data": {
            "$ref": "#/components/schemas/DskDualDatasetDto"
          },
          "bM021Data": {
            "$ref": "#/components/schemas/DskDualDatasetDto"
          },
          "bM030Data": {
            "$ref": "#/components/schemas/DskSingleDatasetDto"
          },
          "bM031Data": {
            "$ref": "#/components/schemas/DskSingleDatasetDto"
          }
        },
        "additionalProperties": false
      },
      "AreaAnalyticsDataContainer": {
        "required": [
          "data"
        ],
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/AreaAnalyticsData"
          }
        },
        "additionalProperties": false
      },
      "AreaSeriesDto": {
        "required": [
          "location",
          "dataset",
          "measures",
          "sourceUpdatedAt",
          "quality"
        ],
        "type": "object",
        "properties": {
          "location": {
            "$ref": "#/components/schemas/SeriesLocation"
          },
          "dataset": {
            "$ref": "#/components/schemas/SeriesDataset"
          },
          "measures": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SeriesMeasure"
            }
          },
          "sourceUpdatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "quality": {
            "$ref": "#/components/schemas/SeriesQuality"
          }
        },
        "additionalProperties": false
      },
      "AreaSeriesToolResponse": {
        "required": [
          "series",
          "missing"
        ],
        "type": "object",
        "properties": {
          "series": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AreaSeriesDto"
            }
          },
          "missing": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MissingAreaSeriesDto"
            }
          }
        },
        "additionalProperties": false
      },
      "DatabaseModel": {
        "required": [
          "areaAnalyticsData",
          "id",
          "lastSynced",
          "shouldSync"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "shouldSync": {
            "type": "boolean"
          },
          "lastSynced": {
            "type": "string",
            "format": "date-time"
          },
          "isRefreshing": {
            "type": "boolean"
          },
          "areaAnalyticsData": {
            "$ref": "#/components/schemas/AreaAnalyticsDataContainer"
          }
        },
        "additionalProperties": false
      },
      "DatasourceModel": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "lastSynced": {
            "type": "string",
            "format": "date-time"
          },
          "datasource": {
            "type": "string"
          },
          "specialNotes": {
            "type": "string"
          },
          "newestDataAvailable": {
            "type": "string"
          },
          "frequency": {
            "type": "string",
            "nullable": true
          },
          "lastUpdatedData": {
            "type": "string"
          },
          "origin": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "DskDualDatasetDto": {
        "type": "object",
        "properties": {
          "first": {
            "type": "array",
            "items": {
              "type": "number",
              "format": "double"
            },
            "nullable": true
          },
          "second": {
            "type": "array",
            "items": {
              "type": "number",
              "format": "double"
            },
            "nullable": true
          },
          "combined": {
            "type": "array",
            "items": {
              "type": "number",
              "format": "double"
            },
            "nullable": true
          },
          "timeStamp": {
            "type": "string",
            "nullable": true
          },
          "frequency": {
            "type": "string",
            "nullable": true
          },
          "newestDataAvailable": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Stored dataset preserved without recalculation. timeStamp is a source/update timestamp, not the observation axis; frequency and newestDataAvailable are existing metadata when available. Null arrays mean missing data. Dual datasets use first/second/combined; multi datasets use primary/extra."
      },
      "DskMultiDatasetDto": {
        "type": "object",
        "properties": {
          "primary": {
            "type": "array",
            "items": {
              "type": "number",
              "format": "double"
            },
            "nullable": true
          },
          "extra": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              },
              "nullable": true
            }
          },
          "timeStamp": {
            "type": "string",
            "nullable": true
          },
          "frequency": {
            "type": "string",
            "nullable": true
          },
          "newestDataAvailable": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Stored dataset preserved without recalculation. timeStamp is a source/update timestamp, not the observation axis; frequency and newestDataAvailable are existing metadata when available. Null arrays mean missing data. Dual datasets use first/second/combined; multi datasets use primary/extra."
      },
      "DskSingleDatasetDto": {
        "type": "object",
        "properties": {
          "values": {
            "type": "array",
            "items": {
              "type": "number",
              "format": "double"
            },
            "nullable": true
          },
          "timeStamp": {
            "type": "string",
            "nullable": true
          },
          "frequency": {
            "type": "string",
            "nullable": true
          },
          "newestDataAvailable": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Stored dataset preserved without recalculation. timeStamp is a source/update timestamp, not the observation axis; frequency and newestDataAvailable are existing metadata when available. Null arrays mean missing data. Dual datasets use first/second/combined; multi datasets use primary/extra."
      },
      "MissingAreaSeriesDto": {
        "required": [
          "location",
          "datasource",
          "propertyCategory"
        ],
        "type": "object",
        "properties": {
          "location": {
            "type": "string"
          },
          "datasource": {
            "type": "string"
          },
          "propertyCategory": {
            "$ref": "#/components/schemas/NullableSeriesCategory"
          }
        },
        "additionalProperties": false
      },
      "NullableSeriesCategory": {
        "required": [
          "code",
          "label"
        ],
        "type": "object",
        "properties": {
          "code": {
            "enum": [
              "1",
              "2",
              "3"
            ],
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "nullable": true
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": { }
      },
      "SeriesCategory": {
        "required": [
          "code",
          "label"
        ],
        "type": "object",
        "properties": {
          "code": {
            "enum": [
              "1",
              "2",
              "3"
            ],
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SeriesDataset": {
        "required": [
          "code",
          "name",
          "source",
          "frequency",
          "limitations",
          "propertyCategory"
        ],
        "type": "object",
        "properties": {
          "code": {
            "enum": [
              "BM010",
              "BM020",
              "BM030",
              "FOLK1AM",
              "GALDER",
              "FRKM225",
              "LABY01",
              "INDKP106",
              "BOL101",
              "HUS1",
              "ERHEJD1",
              "EJ56",
              "EJ131",
              "EJEN77",
              "TVANG2",
              "BYGV99",
              "BYGB70",
              "REGN80",
              "ITAV25"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "frequency": {
            "enum": [
              "quarterly",
              "monthly",
              "yearly"
            ],
            "type": "string"
          },
          "limitations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "propertyCategory": {
            "$ref": "#/components/schemas/NullableSeriesCategory"
          }
        },
        "additionalProperties": false
      },
      "SeriesLocation": {
        "required": [
          "name",
          "type",
          "code"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "enum": [
              "municipality"
            ],
            "type": "string"
          },
          "code": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SeriesMeasure": {
        "required": [
          "key",
          "label",
          "unit",
          "observationDimension",
          "observations"
        ],
        "type": "object",
        "properties": {
          "key": {
            "enum": [
              "realisedSalePrice",
              "soldProperties",
              "propertiesForSaleAtPeriodEnd",
              "averageSellingTime",
              "totalPopulation",
              "malePopulation",
              "femalePopulation",
              "averageAgeMen",
              "averageAgeWomen",
              "projectedPopulationGrowth",
              "birthSurplus",
              "netDomesticMigration",
              "netImmigration",
              "populationGrowth",
              "income200000To224999",
              "income225000To249999",
              "income250000To299999",
              "income300000To349999",
              "income350000To399999",
              "income400000To449999",
              "income450000To499999",
              "income500000AndAbove",
              "constructionYear2005",
              "constructionYear2006",
              "constructionYear2007",
              "constructionYear2008",
              "constructionYear2009",
              "constructionYear2010",
              "constructionYear2011",
              "constructionYear2012",
              "constructionYear2013",
              "constructionYear2014",
              "constructionYear2015",
              "constructionYear2016",
              "constructionYear2017",
              "constructionYear2018",
              "constructionYear2019",
              "constructionYear2020",
              "constructionYear2021",
              "constructionYear2022",
              "constructionYear2023",
              "constructionYear2024"
            ],
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "unit": {
            "enum": [
              "DKK/m2",
              "count",
              "days",
              "Gns.",
              "per 1,000 inhabitants",
              "kr."
            ],
            "type": "string"
          },
          "observationDimension": {
            "enum": [
              "period"
            ],
            "type": "string"
          },
          "observations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SeriesObservation"
            }
          }
        },
        "additionalProperties": false
      },
      "SeriesObservation": {
        "required": [
          "period",
          "value"
        ],
        "type": "object",
        "properties": {
          "period": {
            "type": "string"
          },
          "value": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SeriesQuality": {
        "required": [
          "status",
          "warnings"
        ],
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      }
    }
  }
}