{
  "openapi": "3.1.1",
  "info": {
    "title": "MagtPortalen Public Data API",
    "description": "Read-only official political data. Authentication: Authorization: Bearer <API key>. Every data endpoint requires the single data:read permission, which covers all API datasets. API keys cannot access website accounts or editorial APIs. API access is available to organizations under their business agreements. The shared quota resets each UTC calendar month. All admitted requests count as usage, including client errors (4xx). Server errors (5xx) do not. Invalid credentials and requests refused by admission rate, quota or payment limits do not consume usage. Requests still count towards short-term rate limits. Pagination: follow Link rel=next or nextAfter; limit 1–100. IDs are source IDs; party/group IDs are session-specific. sourceUpdatedAt is source-local Danish time without an offset; importedAt is UTC. Keep keys on your server, never in browser code. Folketinget and Danmarks Statistik are the original sources. Attribute them when reusing data. The API excludes portraits, logos, drafts and private account state. Published assessments and professional profile facts are explicitly labelled; attribute MagtPortalen for its editorial assessments. Linked source documents retain their own rights. Events are an incremental revision feed including corrections and withdrawals, not news articles. When offered, paid extra requests require the organization owner to accept the price and set a spending cap. Manage keys and usage in the organization’s API settings. Respect Retry-After on 429 responses; included usage never incurs extra charges.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "http://api:8080/"
    }
  ],
  "paths": {
    "/api/v1/politicians": {
      "get": {
        "tags": [
          "PublicData"
        ],
        "summary": "Find politikere",
        "description": "Hent personer fra Folketingets personregister. Listen er ikke afgrænset til nuværende medlemmer. Required scope: data:read.",
        "parameters": [
          {
            "name": "UpdatedSince",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "After",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 0,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "Limit",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "SessionId",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiPolitician"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiPolitician"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiPolitician"
                }
              }
            }
          }
        },
        "security": [
          {
            "PublicApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/politicians/{id}": {
      "get": {
        "tags": [
          "PublicData"
        ],
        "summary": "Hent en politiker",
        "description": "Slå en person op med kilde-id'et fra personlisten. Required scope: data:read.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPolitician"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPolitician"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPolitician"
                }
              }
            }
          },
          "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"
                }
              }
            }
          }
        },
        "security": [
          {
            "PublicApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/parties": {
      "get": {
        "tags": [
          "PublicData"
        ],
        "summary": "Find folketingsgrupper",
        "description": "Hent grupperegistreringer fra Folketinget. Et parti kan have forskellige id'er i forskellige samlinger. Required scope: data:read.",
        "parameters": [
          {
            "name": "UpdatedSince",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "After",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 0,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "Limit",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "SessionId",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiParty"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiParty"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiParty"
                }
              }
            }
          }
        },
        "security": [
          {
            "PublicApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/parties/{id}": {
      "get": {
        "tags": [
          "PublicData"
        ],
        "summary": "Hent en folketingsgruppe",
        "description": "Hent en bestemt grupperegistrering. Id'et henviser til gruppen i en samling, ikke til en permanent partiprofil. Required scope: data:read.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiParty"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiParty"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiParty"
                }
              }
            }
          },
          "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"
                }
              }
            }
          }
        },
        "security": [
          {
            "PublicApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/parliamentary-sessions": {
      "get": {
        "tags": [
          "PublicData"
        ],
        "summary": "Find samlinger",
        "description": "Find samlingens id, før du afgrænser lovforslag eller grupper med sessionId. Required scope: data:read.",
        "parameters": [
          {
            "name": "After",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 0,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "Limit",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "SessionId",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiSession"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiSession"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiSession"
                }
              }
            }
          }
        },
        "security": [
          {
            "PublicApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/bills": {
      "get": {
        "tags": [
          "PublicData"
        ],
        "summary": "Find lovforslag",
        "description": "Hent originale titler, resuméer og status fra de importerede folketingsdata. Required scope: data:read.",
        "parameters": [
          {
            "name": "Search",
            "in": "query",
            "schema": {
              "maxLength": 200,
              "minLength": 0,
              "type": "string"
            }
          },
          {
            "name": "Topic",
            "in": "query",
            "schema": {
              "maxLength": 100,
              "minLength": 0,
              "type": "string"
            }
          },
          {
            "name": "UpdatedSince",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "After",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 0,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "Limit",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "SessionId",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiBill"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiBill"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiBill"
                }
              }
            }
          }
        },
        "security": [
          {
            "PublicApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/bills/{id}": {
      "get": {
        "tags": [
          "PublicData"
        ],
        "summary": "Hent et lovforslag",
        "description": "Slå et forslag op med det numeriske kilde-id. Brug id, ikke L-nummeret, i adressen. Required scope: data:read.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiBill"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiBill"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiBill"
                }
              }
            }
          },
          "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"
                }
              }
            }
          }
        },
        "security": [
          {
            "PublicApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/bills/{id}/roll-calls": {
      "get": {
        "tags": [
          "PublicData"
        ],
        "summary": "Find afstemninger om et forslag",
        "description": "Hent de registrerede afstemninger på forslagets behandlingstrin. Listen er ikke begrænset til endelige afstemninger. Required scope: data:read.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "After",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 0,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "Limit",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "SessionId",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiRollCall"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiRollCall"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiRollCall"
                }
              }
            }
          },
          "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"
                }
              }
            }
          }
        },
        "security": [
          {
            "PublicApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/roll-calls/{id}/votes": {
      "get": {
        "tags": [
          "PublicData"
        ],
        "summary": "Se medlemmernes stemmer",
        "description": "Hent de individuelle stemmer i én afstemning. politicianId forbinder en stemme med personregisteret. Required scope: data:read.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "After",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 0,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "Limit",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "SessionId",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiVote"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiVote"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiVote"
                }
              }
            }
          },
          "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"
                }
              }
            }
          }
        },
        "security": [
          {
            "PublicApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/elections/parliamentary": {
      "get": {
        "tags": [
          "PublicData"
        ],
        "summary": "Find folketingsvalg",
        "description": "Hent valgår med importerede resultater, nyeste år først. Returnerer op til 100 valgår uden sideinddeling. Required scope: data:read.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiListOfApiElection"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiListOfApiElection"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiListOfApiElection"
                }
              }
            }
          }
        },
        "security": [
          {
            "PublicApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/elections/parliamentary/{year}/results": {
      "get": {
        "tags": [
          "PublicData"
        ],
        "summary": "Hent et valgresultat",
        "description": "Hent de importerede partiresultater for ét folketingsvalgår. Returnerer op til 100 rækker uden sideinddeling. Required scope: data:read.",
        "parameters": [
          {
            "name": "year",
            "in": "path",
            "required": true,
            "schema": {
              "maximum": 2200,
              "minimum": 1900,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiListOfApiElectionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiListOfApiElectionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiListOfApiElectionResult"
                }
              }
            }
          },
          "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"
                }
              }
            }
          }
        },
        "security": [
          {
            "PublicApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/politicians/{id}/voting-profile": {
      "get": {
        "tags": [
          "PublicData"
        ],
        "summary": "Hent politikerens grafer og evidens",
        "description": "Samme beregning som på profilen. Kræver en entydig offentlig MagtPortalen-profil knyttet til kilde-id'et; ellers 404. sessionId eller electionPeriod afgrænser perioden (valgperioden har forrang). Uden afgrænsning bruges seneste tilgængelige valgperiode. measure filtrerer evidensen; evidencePage starter fra 1 og indeholder højst seks forslag. Required scope: data:read.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "SessionId",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "Measure",
            "in": "query",
            "schema": {
              "maxLength": 100,
              "minLength": 0,
              "type": "string"
            }
          },
          {
            "name": "EvidencePage",
            "in": "query",
            "schema": {
              "maximum": 10000,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "ElectionPeriod",
            "in": "query",
            "schema": {
              "maxLength": 10,
              "minLength": 0,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiVotingProfile"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiVotingProfile"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiVotingProfile"
                }
              }
            }
          },
          "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"
                }
              }
            }
          },
          "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"
                }
              }
            }
          }
        },
        "security": [
          {
            "PublicApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/parties/{id}/voting-profile": {
      "get": {
        "tags": [
          "PublicData"
        ],
        "summary": "Hent partiets grafer og evidens",
        "description": "Samme beregning og parametre som politikerens voting-profile. Kildegruppens navn forbindes kun med en entydig offentlig partiprofil. Stemmeandele beregnes ud fra medlemskab på afstemningsdagen. Required scope: data:read.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "SessionId",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "Measure",
            "in": "query",
            "schema": {
              "maxLength": 100,
              "minLength": 0,
              "type": "string"
            }
          },
          {
            "name": "EvidencePage",
            "in": "query",
            "schema": {
              "maximum": 10000,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "ElectionPeriod",
            "in": "query",
            "schema": {
              "maxLength": 10,
              "minLength": 0,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiVotingProfile"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiVotingProfile"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiVotingProfile"
                }
              }
            }
          },
          "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"
                }
              }
            }
          },
          "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"
                }
              }
            }
          }
        },
        "security": [
          {
            "PublicApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/politicians/{id}/profile": {
      "get": {
        "tags": [
          "PublicData"
        ],
        "summary": "Hent professionel profil",
        "description": "Medlemsstatus, rolle og senest registrerede parti fra Folketinget. Ingen portrætter eller privat biografi. Required scope: data:read.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPoliticianProfile"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPoliticianProfile"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPoliticianProfile"
                }
              }
            }
          },
          "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"
                }
              }
            }
          }
        },
        "security": [
          {
            "PublicApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/politicians/{id}/memberships": {
      "get": {
        "tags": [
          "PublicData"
        ],
        "summary": "Hent registrerede gruppetilhørsforhold",
        "description": "Rå registreringsperioder, ikke bevis for partiskift. Datohuller må ikke fortolkes som udmeldelser. Required scope: data:read.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "After",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 0,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "Limit",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "SessionId",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiMembership"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiMembership"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiMembership"
                }
              }
            }
          },
          "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"
                }
              }
            }
          }
        },
        "security": [
          {
            "PublicApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/politicians/{id}/votes": {
      "get": {
        "tags": [
          "PublicData"
        ],
        "summary": "Hent en politikers stemmer",
        "description": "finalOnly=true (standard) vælger den seneste endelige afstemning pr. lovforslag; false inkluderer alle registrerede stemmer. sessionId kan afgrænse samlingen. Required scope: data:read.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "FinalOnly",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "After",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 0,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "Limit",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "SessionId",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiPoliticianVote"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiPoliticianVote"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiPoliticianVote"
                }
              }
            }
          },
          "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"
                }
              }
            }
          }
        },
        "security": [
          {
            "PublicApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/parties/{id}/profile": {
      "get": {
        "tags": [
          "PublicData"
        ],
        "summary": "Hent partiprofil og ledelse",
        "description": "Forbinder kildegrupper med en entydig offentlig profil på MagtPortalen. Ingen logoer eller billeder. Required scope: data:read.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPartyProfile"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPartyProfile"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPartyProfile"
                }
              }
            }
          },
          "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"
                }
              }
            }
          }
        },
        "security": [
          {
            "PublicApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/parties/{id}/memberships": {
      "get": {
        "tags": [
          "PublicData"
        ],
        "summary": "Hent gruppens medlemsperioder",
        "description": "Medlemsregistreringer i netop denne kildegruppe/samling. Ikke nødvendigvis aktuelle medlemmer. Required scope: data:read.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "After",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 0,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "Limit",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "SessionId",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiMembership"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiMembership"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPageOfApiMembership"
                }
              }
            }
          },
          "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"
                }
              }
            }
          }
        },
        "security": [
          {
            "PublicApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/bills/{id}/analysis": {
      "get": {
        "tags": [
          "PublicData"
        ],
        "summary": "Hent afstemningsresultat og vurdering",
        "description": "Emner, seneste endelige afstemning, historisk gruppefordeling og publicerede vurderinger med kilder. Redaktionelle vurderinger er MagtPortalens, ikke Folketingets. Required scope: data:read.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiBillAnalysis"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiBillAnalysis"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiBillAnalysis"
                }
              }
            }
          },
          "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"
                }
              }
            }
          }
        },
        "security": [
          {
            "PublicApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/policy-measures": {
      "get": {
        "tags": [
          "PublicData"
        ],
        "summary": "Forstå vurderingernes målestokke",
        "description": "Aktuelle definitioner bag de politiske grafer. Retning siger mere eller mindre af noget, ikke god eller dårlig politik. Required scope: data:read.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiListOfApiPolicyMeasure"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiListOfApiPolicyMeasure"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiListOfApiPolicyMeasure"
                }
              }
            }
          }
        },
        "security": [
          {
            "PublicApiKey": [ ]
          }
        ]
      }
    },
    "/api/v1/political-events": {
      "get": {
        "tags": [
          "PublicData"
        ],
        "summary": "Følg hændelser og rettelser",
        "description": "Hent revisioner i stigende sequence. kind, politicianId, billId og topic er valgfrie filtre. Behold snapshotSequence ved sideinddeling. Efter sidste side gemmes snapshotSequence som after til næste opdatering uden snapshotSequence. Hændelser om personer følger samme tiårsgrænse som på hjemmesiden; feedet er ikke et permanent arkiv. Required scope: data:read.",
        "parameters": [
          {
            "name": "After",
            "in": "query",
            "schema": {
              "maximum": 9223372036854776000,
              "minimum": 0,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "Limit",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "SnapshotSequence",
            "in": "query",
            "schema": {
              "maximum": 9223372036854776000,
              "minimum": 0,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "Kind",
            "in": "query",
            "schema": {
              "maxLength": 30,
              "minLength": 0,
              "type": "string"
            }
          },
          {
            "name": "PoliticianId",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "BillId",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "Topic",
            "in": "query",
            "schema": {
              "maxLength": 100,
              "minLength": 0,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEventPage"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEventPage"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEventPage"
                }
              }
            }
          },
          "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"
                }
              }
            }
          }
        },
        "security": [
          {
            "PublicApiKey": [ ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ApiBill": {
        "required": [
          "id",
          "sessionId",
          "number",
          "title",
          "summary",
          "statusId",
          "conclusion",
          "sourceUpdatedAt",
          "importedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "sessionId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "number": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "statusId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "conclusion": {
            "type": "string"
          },
          "sourceUpdatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "importedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiBillAnalysis": {
        "required": [
          "id",
          "websitePath",
          "topics",
          "finalVote",
          "assessment"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "websitePath": {
            "type": [
              "null",
              "string"
            ]
          },
          "topics": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "finalVote": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ApiFinalVote"
              }
            ]
          },
          "assessment": {
            "$ref": "#/components/schemas/ApiBillAssessment"
          }
        }
      },
      "ApiBillAssessment": {
        "required": [
          "status",
          "version",
          "note",
          "effects"
        ],
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "version": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "note": {
            "type": [
              "null",
              "string"
            ]
          },
          "effects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiPolicyEffect"
            }
          }
        }
      },
      "ApiElection": {
        "required": [
          "year",
          "importedAt"
        ],
        "type": "object",
        "properties": {
          "year": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "importedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiElectionResult": {
        "required": [
          "year",
          "partyCode",
          "name",
          "symbol",
          "votes",
          "validVotes",
          "ballotsCast",
          "eligibleVoters",
          "seats",
          "importedAt"
        ],
        "type": "object",
        "properties": {
          "year": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "partyCode": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "votes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "validVotes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ballotsCast": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "eligibleVoters": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "seats": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "importedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiEventActor": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "ApiEventEvidence": {
        "required": [
          "withdrawalReason",
          "actors",
          "sources",
          "choice",
          "majorityChoice",
          "votes"
        ],
        "type": "object",
        "properties": {
          "withdrawalReason": {
            "type": [
              "null",
              "string"
            ]
          },
          "actors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiEventActor"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiEventSource"
            }
          },
          "choice": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "majorityChoice": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "votes": {
            "$ref": "#/components/schemas/ApiVoteTotals"
          }
        }
      },
      "ApiEventPage": {
        "required": [
          "data",
          "nextAfter",
          "snapshotSequence",
          "source"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiPoliticalEvent"
            }
          },
          "nextAfter": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "snapshotSequence": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "source": {
            "type": "string"
          }
        }
      },
      "ApiEventSource": {
        "required": [
          "label",
          "url"
        ],
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      },
      "ApiFinalVote": {
        "required": [
          "id",
          "occurredAt",
          "passed",
          "votes",
          "groups"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "occurredAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "passed": {
            "type": "boolean"
          },
          "votes": {
            "$ref": "#/components/schemas/ApiVoteTotals"
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiGroupVote"
            }
          }
        }
      },
      "ApiGroupIdentity": {
        "required": [
          "id",
          "sessionId",
          "name",
          "shortName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "sessionId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "shortName": {
            "type": "string"
          }
        }
      },
      "ApiGroupVote": {
        "required": [
          "sourceName",
          "shortName",
          "votes"
        ],
        "type": "object",
        "properties": {
          "sourceName": {
            "type": "string"
          },
          "shortName": {
            "type": "string"
          },
          "votes": {
            "$ref": "#/components/schemas/ApiVoteTotals"
          }
        }
      },
      "ApiListOfApiElection": {
        "required": [
          "data",
          "source"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiElection"
            }
          },
          "source": {
            "type": "string"
          }
        }
      },
      "ApiListOfApiElectionResult": {
        "required": [
          "data",
          "source"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiElectionResult"
            }
          },
          "source": {
            "type": "string"
          }
        }
      },
      "ApiListOfApiPolicyMeasure": {
        "required": [
          "data",
          "source"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiPolicyMeasure"
            }
          },
          "source": {
            "type": "string"
          }
        }
      },
      "ApiMembership": {
        "required": [
          "id",
          "politicianId",
          "groupId",
          "sessionId",
          "groupName",
          "groupShortName",
          "startsAt",
          "endsAt",
          "sourceUpdatedAt",
          "importedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "politicianId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "groupId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "sessionId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "groupName": {
            "type": "string"
          },
          "groupShortName": {
            "type": "string"
          },
          "startsAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "endsAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "sourceUpdatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "importedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiPageOfApiBill": {
        "required": [
          "data",
          "nextAfter",
          "source"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiBill"
            }
          },
          "nextAfter": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "source": {
            "type": "string"
          }
        }
      },
      "ApiPageOfApiMembership": {
        "required": [
          "data",
          "nextAfter",
          "source"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiMembership"
            }
          },
          "nextAfter": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "source": {
            "type": "string"
          }
        }
      },
      "ApiPageOfApiParty": {
        "required": [
          "data",
          "nextAfter",
          "source"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiParty"
            }
          },
          "nextAfter": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "source": {
            "type": "string"
          }
        }
      },
      "ApiPageOfApiPolitician": {
        "required": [
          "data",
          "nextAfter",
          "source"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiPolitician"
            }
          },
          "nextAfter": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "source": {
            "type": "string"
          }
        }
      },
      "ApiPageOfApiPoliticianVote": {
        "required": [
          "data",
          "nextAfter",
          "source"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiPoliticianVote"
            }
          },
          "nextAfter": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "source": {
            "type": "string"
          }
        }
      },
      "ApiPageOfApiRollCall": {
        "required": [
          "data",
          "nextAfter",
          "source"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiRollCall"
            }
          },
          "nextAfter": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "source": {
            "type": "string"
          }
        }
      },
      "ApiPageOfApiSession": {
        "required": [
          "data",
          "nextAfter",
          "source"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiSession"
            }
          },
          "nextAfter": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "source": {
            "type": "string"
          }
        }
      },
      "ApiPageOfApiVote": {
        "required": [
          "data",
          "nextAfter",
          "source"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiVote"
            }
          },
          "nextAfter": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "source": {
            "type": "string"
          }
        }
      },
      "ApiParty": {
        "required": [
          "id",
          "sessionId",
          "name",
          "shortName",
          "sourceUpdatedAt",
          "importedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "sessionId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "shortName": {
            "type": "string"
          },
          "sourceUpdatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "importedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiPartyLeader": {
        "required": [
          "role",
          "title",
          "politicianId",
          "name",
          "startsOn",
          "endsOn"
        ],
        "type": "object",
        "properties": {
          "role": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "politicianId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "startsOn": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "endsOn": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "ApiPartyProfile": {
        "required": [
          "id",
          "sourceName",
          "profileId",
          "websitePath",
          "name",
          "symbol",
          "foundedOn",
          "foundedOnPrecision",
          "groups",
          "leadership"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "sourceName": {
            "type": "string"
          },
          "profileId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "websitePath": {
            "type": [
              "null",
              "string"
            ]
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "symbol": {
            "type": [
              "null",
              "string"
            ]
          },
          "foundedOn": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "foundedOnPrecision": {
            "type": [
              "null",
              "string"
            ]
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiGroupIdentity"
            }
          },
          "leadership": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiPartyLeader"
            }
          }
        }
      },
      "ApiPolicyEffect": {
        "required": [
          "measure",
          "direction",
          "baseline",
          "evidence",
          "sourceUrl"
        ],
        "type": "object",
        "properties": {
          "measure": {
            "type": "string"
          },
          "direction": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "baseline": {
            "type": "string"
          },
          "evidence": {
            "type": "string"
          },
          "sourceUrl": {
            "type": "string"
          }
        }
      },
      "ApiPolicyMeasure": {
        "required": [
          "key",
          "label",
          "lower",
          "higher",
          "topic",
          "category",
          "description",
          "aggregate"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "lower": {
            "type": "string"
          },
          "higher": {
            "type": "string"
          },
          "topic": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "aggregate": {
            "type": "boolean"
          }
        }
      },
      "ApiPoliticalEvent": {
        "required": [
          "id",
          "sequence",
          "kind",
          "occurredOn",
          "registeredAt",
          "change",
          "withdrawn",
          "title",
          "description",
          "partyNames",
          "topics",
          "billId",
          "rollCallId",
          "evidence"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "sequence": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "kind": {
            "type": "string"
          },
          "occurredOn": {
            "type": "string",
            "format": "date"
          },
          "registeredAt": {
            "type": "string",
            "format": "date-time"
          },
          "change": {
            "type": "string"
          },
          "withdrawn": {
            "type": "boolean"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "partyNames": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "billId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "rollCallId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "evidence": {
            "$ref": "#/components/schemas/ApiEventEvidence"
          }
        }
      },
      "ApiPolitician": {
        "required": [
          "id",
          "name",
          "sourceUpdatedAt",
          "importedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "sourceUpdatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "importedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiPoliticianProfile": {
        "required": [
          "id",
          "name",
          "currentMember",
          "role",
          "partyName",
          "partyShortName",
          "profileUpdatedAt",
          "websitePath"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "currentMember": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "role": {
            "type": [
              "null",
              "string"
            ]
          },
          "partyName": {
            "type": [
              "null",
              "string"
            ]
          },
          "partyShortName": {
            "type": [
              "null",
              "string"
            ]
          },
          "profileUpdatedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "websitePath": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ApiPoliticianVote": {
        "required": [
          "id",
          "rollCallId",
          "billId",
          "sessionId",
          "number",
          "title",
          "occurredAt",
          "voteTypeId",
          "voteType"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "rollCallId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "billId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "sessionId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "number": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "occurredAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "voteTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "voteType": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ApiRollCall": {
        "required": [
          "id",
          "billId",
          "stageId",
          "typeId",
          "occurredAt",
          "passed",
          "conclusion",
          "sourceUpdatedAt",
          "importedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "billId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "stageId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "typeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "occurredAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "passed": {
            "type": "boolean"
          },
          "conclusion": {
            "type": "string"
          },
          "sourceUpdatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "importedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiSession": {
        "required": [
          "id",
          "code",
          "title",
          "startsAt",
          "endsAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "code": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "startsAt": {
            "type": "string",
            "format": "date-time"
          },
          "endsAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiVote": {
        "required": [
          "id",
          "politicianId",
          "voteTypeId",
          "voteType"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "politicianId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "voteTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "voteType": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ApiVoteTotals": {
        "required": [
          "for",
          "against",
          "abstained",
          "absent",
          "unknown"
        ],
        "type": "object",
        "properties": {
          "for": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "against": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "abstained": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "absent": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "unknown": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ApiVotingAxis": {
        "required": [
          "measure",
          "lower",
          "higher",
          "rejected",
          "abstained"
        ],
        "type": "object",
        "properties": {
          "measure": {
            "type": "string"
          },
          "lower": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "higher": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "rejected": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "abstained": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ApiVotingCoverage": {
        "required": [
          "sessionId",
          "title",
          "lastSyncedAt"
        ],
        "type": "object",
        "properties": {
          "sessionId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "title": {
            "type": "string"
          },
          "lastSyncedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "ApiVotingEvidence": {
        "required": [
          "billId",
          "number",
          "title",
          "date",
          "measure",
          "direction",
          "for",
          "against",
          "abstained",
          "baseline",
          "evidence",
          "sourceUrl",
          "websitePath"
        ],
        "type": "object",
        "properties": {
          "billId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "number": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "date": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "measure": {
            "type": "string"
          },
          "direction": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "for": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "against": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "abstained": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "baseline": {
            "type": "string"
          },
          "evidence": {
            "type": "string"
          },
          "sourceUrl": {
            "type": "string"
          },
          "websitePath": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ApiVotingPeer": {
        "required": [
          "websiteProfileId",
          "type",
          "name",
          "shared",
          "same"
        ],
        "type": "object",
        "properties": {
          "websiteProfileId": {
            "type": "string",
            "format": "uuid"
          },
          "type": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "shared": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "same": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ApiVotingPeriod": {
        "required": [
          "key",
          "label",
          "startsAt",
          "endsBefore"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "startsAt": {
            "type": "string",
            "format": "date-time"
          },
          "endsBefore": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "ApiVotingProfile": {
        "required": [
          "linked",
          "recordedBills",
          "classifiedBills",
          "excludedBills",
          "measures",
          "evidence",
          "evidenceTotal",
          "evidencePage",
          "contextDecisions",
          "neighbours",
          "coverage",
          "electionPeriods",
          "electionPeriod"
        ],
        "type": "object",
        "properties": {
          "linked": {
            "type": "boolean"
          },
          "recordedBills": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "classifiedBills": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "excludedBills": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "measures": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiVotingAxis"
            }
          },
          "evidence": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiVotingEvidence"
            }
          },
          "evidenceTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "evidencePage": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "contextDecisions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiVotingEvidence"
            }
          },
          "neighbours": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiVotingPeer"
            }
          },
          "coverage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiVotingCoverage"
            }
          },
          "electionPeriods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiVotingPeriod"
            }
          },
          "electionPeriod": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "instance": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      }
    },
    "securitySchemes": {
      "PublicApiKey": {
        "type": "http",
        "description": "Use a data:read API key, never a website JWT.",
        "scheme": "bearer",
        "bearerFormat": "MagtPortalen API key"
      }
    }
  },
  "tags": [
    {
      "name": "PublicData"
    }
  ]
}