{
  "openapi": "3.0.0",
  "info": {
    "title": "Parliament of Finland Open Data API",
    "description": "\n### This is the open data API of the Parliament of Finland.\n\nUse the menu on the left to explore endpoints.\n\n## Main Sections\n\nListed below are the main sections of the API, each containing various fetch endpoints\n\n- __Search__\n    - [Count](#post-/api/v1/search/count)\n    - [Quick search](#post-/api/v1/search/quick-search)\n    - [Search](#get-/api/v1/search)\n    - [Search](#post-/api/v1/search)\n    - [Search datasets](#post-/api/v1/search/dataset)\n    - [Search dataset job status by ID](#get-/api/v1/search/dataset/status/-jobId-)\n- __Aggregations__\n    - [Unique-by aggregations](#post-/api/v1/aggregations/unique-by)\n- __Members of Parliament__\n    - [Member by ID](#get-/api/v1/kansanedustajat/-id-)\n- __Parliamentary matters__\n    - [Matter by ID](#get-/api/v1/valtiopaivaasiat/-eduskuntatunnus+-)\n    - [Matter raw XML by ID](#get-/api/v1/valtiopaivaasiat/-id+-/xml)\n- __Documents__\n    - [Document attachment by ID](#get-/api/v1/asiakirjat/attachments/-langCode+-/-id-)\n    - [Document HTML by ID](#get-/api/v1/asiakirjat/edktunnus/-edktunnus+-/html)\n    - [Document metadata by ID](#get-/api/v1/asiakirjat/edktunnus/-edktunnus+-)\n    - [Document metadata by ID (eduskuntatunnus)](#get-/api/v1/asiakirjat/eduskuntatunnus/-eduskuntatunnus+-)\n    - [Document navigation HTML by ID](#get-/api/v1/asiakirjat/edktunnus/-edktunnus+-/nav/html)\n    - [Document PDF by ID](#get-/api/v1/asiakirjat/edktunnus/-edktunnus+-/pdf)\n    - [Document raw XML by ID](#get-/api/v1/asiakirjat/edktunnus/-id+-/xml)\n- __Plenary sessions__\n    - [Record article HTML by ID](#get-/api/v1/taysistunnot/poytakirja-asiakohdat/-eduskuntatunnus+-/html)\n    - [Record article navigation HTML by ID](#get-/api/v1/taysistunnot/poytakirja-asiakohdat/-eduskuntatunnus+-/nav/html)\n- __Votes__\n    - [Latest voting results](#get-/api/v1/taysistunnot/uusimmat-aanestykset)\n    - [Voting result by ID](#get-/api/v1/taysistunnot/aanestykset/-aanestystunnus+-)\n    - [Voting results by parliamentary matter ID](#get-/api/v1/taysistunnot/asian-aanestykset/-eduskuntatunnus+-)\n    - [Voting results by plenary session ID](#get-/api/v1/taysistunnot/istunnon-aanestykset/-istuntotunnus+-)\n- __Reference Data__\n    - [Committees](#get-/api/v1/reference-data/valiokunnat)\n    - [Document types](#get-/api/v1/reference-data/asiakirjatyypit)\n    - [Electoral district by ID](#get-/api/v1/reference-data/vaalipiirit/-id-)\n    - [Electoral districts](#get-/api/v1/reference-data/vaalipiirit)\n    - [Electoral terms](#get-/api/v1/reference-data/vaalikaudet)\n    - [Genders](#get-/api/v1/reference-data/sukupuolet)\n    - [Keywords by query](#get-/api/v1/reference-data/asiasanat)\n    - [Members of Parliament](#get-/api/v1/reference-data/kansanedustajat)\n    - [Parliamentary group by ID](#get-/api/v1/reference-data/eduskuntaryhmat/-id-)\n    - [Parliamentary groups](#get-/api/v1/reference-data/eduskuntaryhmat)\n    - [Parliamentary sessions](#get-/api/v1/reference-data/valtiopaivat)\n    - [Parliamentary matter types](#get-/api/v1/reference-data/asiatyypit)\n    - [Speech types](#get-/api/v1/reference-data/puheenvuorotyypit)\n\n\n    # API description\n\n    This API provides public data from the Parliament of Finland. It exposes structured information\n    about Members of Parliament, parliamentary matters and documents, plenary sessions and votes,\n    events, speeches, contact information, and reference data.\n\n    Use it to retrieve a known record, search across data categories, or export larger result sets.\n\n    ## General\n\n    - GET requests are limited to 180 requests per minute per IP address.\n    - POST requests are limited to 90 requests per minute per IP address.\n    - JSON is used for structured responses unless an interface specifically returns HTML, XML,\n      PDF, or another file format.\n    - Use identifiers exactly as returned by the API. These include `henkilonro`, `eduskuntatunnus`, `edktunnus`,\n      `istuntotunnus`, and `aanestystunnus`.\n\n    ## Retrieve a known record\n\n    Use a fetch interface when you already know the record identifier:\n\n    - Fetch a Member of Parliament by the member's `henkilonumero`.\n    - Fetch a parliamentary matter by `eduskuntatunnus`.\n    - Fetch document metadata by `edktunnus`, or list documents by parliamentary-matter ID.\n    - Fetch one voting result, all votes in a plenary session, or all votes for a parliamentary matter.\n\n    XML interfaces provide raw source data. HTML interfaces provide rendered articles or navigation\n    structures. PDF and attachment interfaces return a redirect, so clients must follow redirects,\n    for example with `curl -L`.\n\n    ## Search\n\n    POST search is the main search interface. It supports free-text `query`, exact `expression`\n    filters, category selection, sorting, field selection, highlighting, and aggregations.\n\n    Available search categories are:\n\n    - `kansanedustaja` — Members of Parliament\n    - `valtiopaivaasia` — parliamentary matters\n    - `asiakirja` — parliamentary documents\n    - `tapahtuma` — events\n    - `puheenvuoro` — parliamentary speeches\n    - `aanestys` — voting results\n    - `yhteystieto` — contact information\n    - `sivu` — public website pages\n    - `tiedosto` — files and publications\n\n    Omit `category` to search all categories. Use quick search for lightweight type-ahead searches,\n    GET search for URL-embedded query JSON, and count to retrieve only the number of matching records.\n\n    ## Export larger datasets\n\n    POST search is limited to 10,000 results through `maxResults`. Use dataset search for a\n    potentially larger export. It requires a `category` and `sort`, starts an asynchronous job,\n    and returns a `jobId`.\n\n    Poll the dataset status interface with that job ID. When it completes, `resultUrl` contains\n    an NDJSON download. Dataset jobs are limited by the number that may run concurrently.\n\n    ## Aggregations\n\n    Unique-by aggregation returns unique values and counts for selected fields. Set `category`\n    to the data type and `terms` to the fields to aggregate.\n\n    ## Reference data\n\n    Reference data interfaces provide lookup lists for specific and separately maintained data sets.\n\n    ## Interface overview\n\n    - **Search and aggregations**: filtering, fuzzy text search, counts, quick search, exports,\n      and field-value summaries.\n    - **Members of Parliament**: fetch one record by ID; use search or dataset search to retrieve lists.\n    - **Parliamentary matters**: fetch by `eduskuntatunnus` or retrieve raw XML.\n    - **Documents**: metadata, HTML, PDF, navigation, attachments, and raw XML.\n    - **Plenary sessions**: plenary session record articles and navigation structures.\n    - **Votes**: one vote, session or matter vote collections, and recent votes.\n    - **Reference data**: stable lookup values and identifiers used with parliamentary data.\n\n    ### Contact info\n\n    Questions and issues regarding the open data API of the Parliament of Finland can be sent to:\n\n    [avoindata@eduskunta.fi](mailto:avoindata@eduskunta.fi)\n\n    or\n\n    [verkkosivut@eduskunta.fi](mailto:verkkosivut@eduskunta.fi)\n\n",
    "version": "0.0.0"
  },
  "tags": [
    {
      "name": "Search",
      "description": "Search across MPs, parliamentary matters, documents, parliamentary speeches, voting results, events, files and publications, public pages, and contact information. Use POST search for full criteria and sorting, quick search for lightweight relevance-ranked results, GET search for query-parameter-based searches, count to retrieve only the number of matches, or dataset search to start an export job and fetch its status.\n\n### Operations\n- [Count](#post-/api/v1/search/count)\n- [Quick search](#post-/api/v1/search/quick-search)\n- [Search](#get-/api/v1/search)\n- [Search](#post-/api/v1/search)\n- [Search datasets](#post-/api/v1/search/dataset)\n- [Search dataset job status by ID](#get-/api/v1/search/dataset/status/-jobId-)"
    },
    {
      "name": "Aggregations",
      "description": "Aggregate indexed open-data values and retrieve unique values together with their result counts. Select a data category and one or more fields to summarize.\n\n### Operations\n\n- [Unique-by aggregations](#post-/api/v1/aggregations/unique-by)"
    },
    {
      "name": "Members of Parliament",
      "description": "Retrieve a single Member of Parliament by the member's henkilonumero. Member lists are available through search and dataset search.\n\n### Operations\n\n- [Member by ID](#get-/api/v1/kansanedustajat/-id-)"
    },
    {
      "name": "Parliamentary Matters",
      "description": "Retrieve a parliamentary matter by eduskuntatunnus and fetch the matter's raw, unprocessed XML source by ID.\n\n### Operations\n\n- [Matter by ID](#get-/api/v1/valtiopaivaasiat/-eduskuntatunnus+-)\n- [Matter raw XML by ID](#get-/api/v1/valtiopaivaasiat/-id+-/xml)"
    },
    {
      "name": "Documents",
      "description": "Retrieve document metadata, rendered HTML, PDF redirects, document navigation, attachments, and raw XML source. Metadata can be fetched by edktunnus or by parliamentary-matter eduskuntatunnus.\n\n### Operations\n\n- [Document attachment by ID](#get-/api/v1/asiakirjat/attachments/-langCode+-/-id-)\n- [Document HTML by ID](#get-/api/v1/asiakirjat/edktunnus/-edktunnus+-/html)\n- [Document metadata by ID](#get-/api/v1/asiakirjat/edktunnus/-edktunnus+-)\n- [Document metadata by ID (eduskuntatunnus)](#get-/api/v1/asiakirjat/eduskuntatunnus/-eduskuntatunnus+-)\n- [Document navigation HTML by ID](#get-/api/v1/asiakirjat/edktunnus/-edktunnus+-/nav/html)\n- [Document PDF by ID](#get-/api/v1/asiakirjat/edktunnus/-edktunnus+-/pdf)\n- [Document raw XML by ID](#get-/api/v1/asiakirjat/edktunnus/-id+-/xml)"
    },
    {
      "name": "Plenary Session",
      "description": "Retrieve plenary session record articles as HTML and fetch the navigation structure for each article by parliamentary-matter eduskuntatunnus.\n\n### Operations\n\n- [Record article HTML by ID](#get-/api/v1/taysistunnot/poytakirja-asiakohdat/-eduskuntatunnus+-/html)\n- [Record article navigation HTML by ID](#get-/api/v1/taysistunnot/poytakirja-asiakohdat/-eduskuntatunnus+-/nav/html)"
    },
    {
      "name": "Votes",
      "description": "Retrieve one plenary voting result by aanestystunnus, all voting results for a plenary session or parliamentary matter, and the latest recent voting results grouped by parliamentary matter.\n\n### Operations\n\n- [Latest voting results](#get-/api/v1/taysistunnot/uusimmat-aanestykset)\n- [Voting result by ID](#get-/api/v1/taysistunnot/aanestykset/-aanestystunnus+-)\n- [Voting results by parliamentary matter ID](#get-/api/v1/taysistunnot/asian-aanestykset/-eduskuntatunnus+-)\n- [Voting results by plenary session ID](#get-/api/v1/taysistunnot/istunnon-aanestykset/-istuntotunnus+-)"
    },
    {
      "name": "Reference Data",
      "description": "Retrieve reference and lookup data for parliamentary groups, electoral districts, genders, committees, plenary-session types, parliamentary sessions, electoral terms, document types, Members of Parliament, speech types, and document or matter keywords.\n\n### Operations\n\n- [Committees](#get-/api/v1/reference-data/valiokunnat)\n- [Document types](#get-/api/v1/reference-data/asiakirjatyypit)\n- [Electoral district by ID](#get-/api/v1/reference-data/vaalipiirit/-id-)\n- [Electoral districts](#get-/api/v1/reference-data/vaalipiirit)\n- [Electoral terms](#get-/api/v1/reference-data/vaalikaudet)\n- [Genders](#get-/api/v1/reference-data/sukupuolet)\n- [Keywords by query](#get-/api/v1/reference-data/asiasanat)\n- [Members of Parliament](#get-/api/v1/reference-data/kansanedustajat)\n- [Parliamentary group by ID](#get-/api/v1/reference-data/eduskuntaryhmat/-id-)\n- [Parliamentary groups](#get-/api/v1/reference-data/eduskuntaryhmat)\n- [Parliamentary sessions](#get-/api/v1/reference-data/valtiopaivat)\n- [Parliamentary matter types](#get-/api/v1/reference-data/asiatyypit)\n- [Speech types](#get-/api/v1/reference-data/puheenvuorotyypit)"
    }
  ],
  "paths": {
    "/api/v1/aggregations/unique-by": {
      "post": {
        "operationId": "aggregations",
        "summary": "Unique-by aggregations",
        "description": "  Returns unique values (and counts) for one or more fields.\n\n  The response contains key object of term:value pairs.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AggResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Aggregations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AggRequest"
              },
              "examples": {
                "Document types": {
                  "summary": "Document types",
                  "description": "",
                  "value": {
                    "category": "asiakirja",
                    "agg": {
                      "unique": {
                        "terms": [
                          "asiakirjatyyppinimi"
                        ]
                      }
                    }
                  }
                },
                "Professions of MPs": {
                  "summary": "Professions of MPs",
                  "description": "",
                  "value": {
                    "category": "kansanedustaja",
                    "agg": {
                      "unique": {
                        "terms": [
                          "ammatti.fi"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/asiakirjat/attachments/{langCode}/{id}": {
      "get": {
        "operationId": "getAsiakirjaAttachment",
        "summary": "Document attachment by ID",
        "description": "  Fetch a document attachment.\n  Returns a redirect (302) to the actual attachment file.\n  This cannot be used directly in the API explorer, but it can be accessed using eg. curl with -L: curl -L --output kuva.jpg \".../asiakirjat/attachments/fi/kuva.jpg\"",
        "parameters": [
          {
            "name": "langCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "302": {
            "description": "Redirection",
            "headers": {
              "location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "tags": [
          "Documents"
        ]
      }
    },
    "/api/v1/asiakirjat/edktunnus/{edktunnus+}": {
      "get": {
        "operationId": "getAsiakirja",
        "summary": "Document metadata by ID",
        "description": "  Fetch a document's metadata by ID (edktunnus).",
        "parameters": [
          {
            "name": "edktunnus+",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Asiakirja"
                }
              }
            }
          }
        },
        "tags": [
          "Documents"
        ]
      }
    },
    "/api/v1/asiakirjat/edktunnus/{edktunnus+}/html": {
      "get": {
        "operationId": "getAsiakirjaAsHtml",
        "summary": "Document HTML by ID",
        "description": "  Fetch a single document as HTML by ID (edktunnus).",
        "parameters": [
          {
            "name": "edktunnus+",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Documents"
        ]
      }
    },
    "/api/v1/asiakirjat/edktunnus/{edktunnus+}/nav/html": {
      "get": {
        "operationId": "getAsiakirjaNav",
        "summary": "Document navigation HTML by ID",
        "description": "  Fetch a single parliamentary matter navigation as html.",
        "parameters": [
          {
            "name": "edktunnus+",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Documents"
        ]
      }
    },
    "/api/v1/asiakirjat/edktunnus/{edktunnus+}/pdf": {
      "get": {
        "operationId": "getAsiakirjaPDF",
        "summary": "Document PDF by ID",
        "description": "  Fetch a single document as PDF by ID (edktunnus).\n  This endpoint returns a redirect (302) to an external PDF file. For security reasons, browsers may block the automatic redirect due to CORS restrictions. Use curl or Postman to test this endpoint.",
        "parameters": [
          {
            "name": "edktunnus+",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchError"
                }
              }
            }
          },
          "302": {
            "description": "Redirection",
            "headers": {
              "location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "tags": [
          "Documents"
        ]
      }
    },
    "/api/v1/asiakirjat/edktunnus/{id+}/xml": {
      "get": {
        "operationId": "getAsiakirjaXml",
        "summary": "Document raw XML by ID",
        "description": "  Fetch the XML representation of a document by ID (edktunnus). This is the raw unprocessed XML from the originating system.",
        "parameters": [
          {
            "name": "id+",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "tags": [
          "Documents"
        ]
      }
    },
    "/api/v1/asiakirjat/eduskuntatunnus/{eduskuntatunnus+}": {
      "get": {
        "operationId": "getAsiakirjaWithEduskuntatunnus",
        "summary": "Document metadata by ID (eduskuntatunnus)",
        "description": "  Fetch document metadata by parliamentary matter ID (eduskuntatunnus).",
        "parameters": [
          {
            "name": "eduskuntatunnus+",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Asiakirja"
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Documents"
        ]
      }
    },
    "/api/v1/kansanedustajat/{id}": {
      "get": {
        "operationId": "getKansanedustaja",
        "summary": "Member by ID",
        "description": "  Fetch a single MP by ID. The ID is equivalent to the member's 'henkilonumero'.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Kansanedustaja"
                }
              }
            }
          }
        },
        "tags": [
          "Members of Parliament"
        ]
      }
    },
    "/api/v1/reference-data/asiakirjatyypit": {
      "get": {
        "operationId": "getAsiakirjatyypit",
        "summary": "Document types",
        "description": "  Fetch a list of all document types for parliamentary documents.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReferenceData"
                }
              }
            }
          }
        },
        "tags": [
          "Reference Data"
        ]
      }
    },
    "/api/v1/reference-data/asiasanat": {
      "get": {
        "operationId": "getAsiasanat",
        "summary": "Keywords by query",
        "description": "  Search for keywords in documents and parliamentary matters.\n  Returns all keywords that include the the term being queried.\n  Use the required query parameter 'q' to search for keywords. The optional query parameter 'langCode' can be used to filter results by language code. Results limited to 25 entries.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "explode": false
          },
          {
            "name": "langCode",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "explode": false
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "asiasana": {
                        "type": "string"
                      },
                      "kielikoodi": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "asiasana",
                      "kielikoodi"
                    ]
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Reference Data"
        ]
      }
    },
    "/api/v1/reference-data/asiatyypit": {
      "get": {
        "operationId": "getAsiatyypit",
        "summary": "Parliamentary matter types",
        "description": "  Fetch a list of all types for parliamentary matter.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReferenceData"
                }
              }
            }
          }
        },
        "tags": [
          "Reference Data"
        ]
      }
    },
    "/api/v1/reference-data/eduskuntaryhmat": {
      "get": {
        "operationId": "getEduskuntaryhmat",
        "summary": "Parliamentary groups",
        "description": "  Fetch a list of all parliamentary groups that have existed.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReferenceData"
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Reference Data"
        ]
      }
    },
    "/api/v1/reference-data/eduskuntaryhmat/{id}": {
      "get": {
        "operationId": "getEduskuntaryhma",
        "summary": "Parliamentary group by ID",
        "description": "  Fetch a single parliamentary group by ID.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReferenceData"
                }
              }
            }
          }
        },
        "tags": [
          "Reference Data"
        ]
      }
    },
    "/api/v1/reference-data/kansanedustajat": {
      "get": {
        "operationId": "getKansanedustajatReferencedata",
        "summary": "Members of Parliament",
        "description": "  Fetch a list of all Members of Parliament that have ever held office.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReferenceData"
                }
              }
            }
          }
        },
        "tags": [
          "Reference Data"
        ]
      }
    },
    "/api/v1/reference-data/puheenvuorotyypit": {
      "get": {
        "operationId": "getPuheenvuorotyypitReferencedata",
        "summary": "Speech types",
        "description": "  Fetch a list of speech types used in plenary sessions.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReferenceData"
                }
              }
            }
          }
        },
        "tags": [
          "Reference Data"
        ]
      }
    },
    "/api/v1/reference-data/sukupuolet": {
      "get": {
        "operationId": "getSukupuolikoodit",
        "summary": "Genders",
        "description": "  Fetch a list of genders for Members of Parliament.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReferenceData"
                }
              }
            }
          }
        },
        "tags": [
          "Reference Data"
        ]
      }
    },
    "/api/v1/reference-data/vaalikaudet": {
      "get": {
        "operationId": "getVaalikaudet",
        "summary": "Electoral terms",
        "description": "  Fetch a list of all electoral terms.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReferenceData"
                }
              }
            }
          }
        },
        "tags": [
          "Reference Data"
        ]
      }
    },
    "/api/v1/reference-data/vaalipiirit": {
      "get": {
        "operationId": "getVaalipiirit",
        "summary": "Electoral districts",
        "description": "  Fetch a list of all electoral districts.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReferenceData"
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Reference Data"
        ]
      }
    },
    "/api/v1/reference-data/vaalipiirit/{id}": {
      "get": {
        "operationId": "getVaalipiiri",
        "summary": "Electoral district by ID",
        "description": "  Fetch a single electoral district by ID.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReferenceData"
                }
              }
            }
          }
        },
        "tags": [
          "Reference Data"
        ]
      }
    },
    "/api/v1/reference-data/valiokunnat": {
      "get": {
        "operationId": "getValiokunnat",
        "summary": "Committees",
        "description": "  Fetch a list of all committees.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReferenceData"
                }
              }
            }
          }
        },
        "tags": [
          "Reference Data"
        ]
      }
    },
    "/api/v1/reference-data/valtiopaivat": {
      "get": {
        "operationId": "getValtiopaivat",
        "summary": "Parliamentary sessions",
        "description": "  Fetch a list of all parliamentary sessions.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReferenceData"
                }
              }
            }
          }
        },
        "tags": [
          "Reference Data"
        ]
      }
    },
    "/api/v1/search": {
      "post": {
        "operationId": "search",
        "summary": "Search",
        "description": "  Search for anything using a fuzzy text search and/or specific exact criteria.\n\n  If both - fuzzy text in the 'query' property, and - specific criteria in the 'expression' property\n  are provided, the search will be performed using both. The results will be first filtered using the fuzzy\n  query, and any hits are further filtered using the specific criteria. If the 'combinedSearch' property is set to false, then the 'query' property will be omitted, even if present.\n\n  The results will be sorted primarily by the fuzzy text search results when it is present. If, however, the\n  query includes the property 'sort', the results will be sorted using that property instead.\n\n  Search using the 'category' property:\n1. To make a search on all categories, the category property should be omitted.\n2. 'kansanedustaja' -> MPs and MPs summaries\n    - Each result that contains an MP will also contain a summary of the MP.\n3. 'valtiopaivaasia' -> Parliamentary matters\n4. 'asiakirja' -> Documents of Parliamentary matters\n5. 'tapahtuma' -> Events\n6. 'puheenvuoro' -> Floor speeches\n7. 'aanestys' -> Vote results\n8. 'sivu' -> Pages\n9. 'tiedosto' -> Files (publications)\n  10. 'yhteystieto' -> Contact info\n\n  NOTE:\n  - The highest allowed number of results (maxResults) is 10000.\n  - Trailing commas are not allowed in the request body.\n  - Results exceeding a certain size will be returned via a HTTP 302 redirect. These cannot be directly\n    viewed in the API explorer, but can be accessed using eg. curl, using -L and omitting -X. Example:\n      curl -L \".../api/v1/search\" \\\n           -d '{...}'\n",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Search"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequest"
              },
              "examples": {
                "Search parliamentary matters by type": {
                  "summary": "Search parliamentary matters by type",
                  "description": "",
                  "value": {
                    "category": "valtiopaivaasia",
                    "maxResults": 100,
                    "startFromIndex": 0,
                    "expression": {
                      "and": [
                        {
                          "property": "asiakirjatyyppinimi",
                          "match": "Kansalaisaloite"
                        }
                      ]
                    },
                    "sort": [
                      {
                        "property": "laadintapvm",
                        "ascending": false
                      }
                    ]
                  }
                },
                "Search MPs by name and electoral district": {
                  "summary": "Search MPs by name and electoral district",
                  "description": "",
                  "value": {
                    "query": "Kokoomus",
                    "langCode": "fi",
                    "category": "kansanedustaja",
                    "maxResults": 100,
                    "startFromIndex": 0,
                    "expression": {
                      "and": [
                        {
                          "property": "kutsumanimi",
                          "match": "Petteri"
                        },
                        {
                          "property": "vaalipiirit",
                          "with": {
                            "property": "nimi",
                            "match": "Varsinais-Suomen"
                          }
                        }
                      ]
                    },
                    "sort": [
                      {
                        "property": "henkilonro",
                        "ascending": false
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "searchQueryParameter",
        "summary": "Search",
        "description": "  Perform a search for MPs, parliamentary matters, documents, speeches, votes, events, files (publications), pages and contact info using a query parameter.\n  Operation works similarly to the POST-based search operation but accepts the query JSON as a query parameter `q`.\n  For details, check [post search](#post-/api/v1/search).\n\n  NOTE:\n  - For queries longer than 1000 characters, consider using the POST method to avoid URL length limitations. If the length limit is exceeded, the server may respond with a 403 - Request blocked.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "explode": false,
            "example": "{\"category\":\"valtiopaivaasia\",\"maxResults\":100,\"startFromIndex\":0,\"expression\":{\"and\":[{\"property\":\"asiakirjatyyppinimi\",\"match\":\"Kansalaisaloite\"}]},\"sort\":[{\"property\":\"laadintapvm\",\"ascending\":false}]}"
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Search"
        ]
      }
    },
    "/api/v1/search/count": {
      "post": {
        "operationId": "count",
        "summary": "Count",
        "description": "  Fetch the number of results that a query will produce without actually fetching the results.\n  For details on query structure, check [post search](#post-/api/v1/search).",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CountResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Search"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequest"
              },
              "examples": {
                "Example": {
                  "summary": "Example",
                  "description": "",
                  "value": {
                    "category": "valtiopaivaasia",
                    "maxResults": 100,
                    "startFromIndex": 0,
                    "expression": {
                      "and": [
                        {
                          "property": "asiakirjatyyppinimi",
                          "match": "Kansalaisaloite"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/search/dataset": {
      "post": {
        "operationId": "searchDataset",
        "summary": "Search datasets",
        "description": "\nSimilar to the /search endpoint but intended for fetching larger datasets as number of results are only limited by the query.\nCategory & sort required.\nFor details, check [post search](#post-/api/v1/search).\n\nRequests initiates an search job, and the response contains a jobId. Use id to fetch status of the\njob and eventually results of the query [from dataset status endpoint](#get-/api/v1/search/dataset/status/-jobId-).\nAmount of dataset search jobs that can be running at the same time is limited, and if the limit is exceeded, the server will respond with a 429.\n",
        "parameters": [],
        "responses": {
          "202": {
            "description": "The request has been accepted for processing, but processing has not yet completed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "jobId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "jobId"
                  ]
                }
              }
            }
          }
        },
        "tags": [
          "Search"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequestDataset"
              },
              "examples": {
                "Documents": {
                  "summary": "Documents",
                  "description": "",
                  "value": {
                    "category": "asiakirja",
                    "expression": {
                      "and": [
                        {
                          "property": "valtiopaivavuosi",
                          "match": "2026"
                        }
                      ]
                    },
                    "sort": [
                      {
                        "property": "laadintapvm",
                        "ascending": false
                      }
                    ]
                  }
                },
                "Parliamentary matters": {
                  "summary": "Parliamentary matters",
                  "description": "",
                  "value": {
                    "category": "valtiopaivaasia",
                    "expression": {
                      "and": [
                        {
                          "property": "valtiopaivavuosi",
                          "match": "2026"
                        }
                      ]
                    },
                    "sort": [
                      {
                        "property": "laadintapvm",
                        "ascending": false
                      }
                    ]
                  }
                },
                "All MPs": {
                  "summary": "All MPs",
                  "description": "",
                  "value": {
                    "category": "kansanedustaja",
                    "sort": [
                      {
                        "property": "henkilonro",
                        "ascending": false
                      }
                    ]
                  }
                },
                "All events": {
                  "summary": "All events",
                  "description": "",
                  "value": {
                    "category": "tapahtuma",
                    "sort": [
                      {
                        "property": "loppuajankohta",
                        "ascending": false
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/search/dataset/status/{jobId}": {
      "get": {
        "operationId": "searchDatasetJobStatus",
        "summary": "Search dataset job status by ID",
        "description": " Fetch the status of a dataset search job using the jobId received when initiating the search.\n If the job is completed resultUrl contains the url of the results. Results are in NDJSON format.",
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "jobId": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "PENDING",
                        "RUNNING",
                        "COMPLETED",
                        "FAILED"
                      ]
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "progressPercent": {
                      "type": "integer"
                    },
                    "resultUrl": {
                      "type": "string",
                      "nullable": true
                    }
                  },
                  "required": [
                    "jobId",
                    "status",
                    "updatedAt",
                    "progressPercent",
                    "resultUrl"
                  ]
                }
              }
            }
          }
        },
        "tags": [
          "Search"
        ]
      }
    },
    "/api/v1/search/quick-search": {
      "post": {
        "operationId": "quickSearch",
        "summary": "Quick search",
        "description": "  A lightweight, relevance-ranked search intended for type-ahead and quick result listings.\n\n  Unlike [post search](#post-/api/v1/search), this operation only accepts a fuzzy text search in the 'query'\n  property. Specific exact criteria ('expression'), custom sorting ('sort'), field selection ('fields'),\n  highlighting options and aggregations are not supported, and the results are always ordered by relevance.\n\n  Search using the 'category' property:\n1. To make a search on all categories, the category property should be omitted.\n2. 'kansanedustaja' -> MPs and MPs summaries\n    - Each result that contains an MP will also contain a summary of the MP.\n3. 'valtiopaivaasia' -> Parliamentary matters\n4. 'asiakirja' -> Documents of Parliamentary matters\n5. 'tapahtuma' -> Events\n6. 'puheenvuoro' -> Floor speeches\n7. 'aanestys' -> Vote results\n8. 'sivu' -> Pages\n9. 'tiedosto' -> Files (publications)\n\n  NOTE:\n  - The 'query' property is required.\n  - The 'langCode' property defaults to 'fi' when not specified.\n  - When 'maxResults' is omitted, 20 results are returned.\n  - Trailing commas are not allowed in the request body.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Search"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuickSearchRequest"
              },
              "examples": {
                "Quick search for MPs by name": {
                  "summary": "Quick search for MPs by name",
                  "description": "",
                  "value": {
                    "query": "Petteri",
                    "langCode": "fi",
                    "category": "kansanedustaja",
                    "maxResults": 20,
                    "startFromIndex": 0
                  }
                },
                "Quick search across all categories": {
                  "summary": "Quick search across all categories",
                  "description": "",
                  "value": {
                    "query": "Kokoomus",
                    "langCode": "fi",
                    "maxResults": 20,
                    "startFromIndex": 0
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/taysistunnot/aanestykset/{aanestystunnus+}": {
      "get": {
        "operationId": "getAanestys",
        "summary": "Voting result by ID",
        "description": "  Fetch a single plenary session voting result. The aanestystunnus is formed by joining istuntovpvuosi, istuntonumero and aanestysnumero with hyphens. E.g. \"2026-94-5\"",
        "parameters": [
          {
            "name": "aanestystunnus+",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Aanestys"
                }
              }
            }
          }
        },
        "tags": [
          "Votes"
        ]
      }
    },
    "/api/v1/taysistunnot/asian-aanestykset/{eduskuntatunnus+}": {
      "get": {
        "operationId": "getAsianAanestykset",
        "summary": "Voting results by parliamentary matter ID",
        "description": "  Fetch all voting results relating to a single parliamentary matter. Search using the ID (eduskuntatunnus) of the matter.\"",
        "parameters": [
          {
            "name": "eduskuntatunnus+",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Aanestys"
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Votes"
        ]
      }
    },
    "/api/v1/taysistunnot/istunnon-aanestykset/{istuntotunnus+}": {
      "get": {
        "operationId": "getIstunnonAanestykset",
        "summary": "Voting results by plenary session ID",
        "description": "  Fetch all voting results relating to a single plenary session. The istuntotunnus is formed by joining istuntovpvuosi and istuntonumero with a hyphen. E.g. \"2026-94\"",
        "parameters": [
          {
            "name": "istuntotunnus+",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Aanestys"
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Votes"
        ]
      }
    },
    "/api/v1/taysistunnot/poytakirja-asiakohdat/{eduskuntatunnus+}/html": {
      "get": {
        "operationId": "getPoytakirjaAsiakohta",
        "summary": "Record article HTML by ID",
        "description": "  Fetch a single plenary session record article as HTML.",
        "parameters": [
          {
            "name": "eduskuntatunnus+",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Plenary Session"
        ]
      }
    },
    "/api/v1/taysistunnot/poytakirja-asiakohdat/{eduskuntatunnus+}/nav/html": {
      "get": {
        "operationId": "getPoytakirjaAsiakohtaNav",
        "summary": "Record article navigation HTML by ID",
        "description": "  Fetch a single plenary session record article navigation as HTML.",
        "parameters": [
          {
            "name": "eduskuntatunnus+",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Plenary Session"
        ]
      }
    },
    "/api/v1/taysistunnot/uusimmat-aanestykset": {
      "get": {
        "operationId": "getLatestAanestykset",
        "summary": "Latest voting results",
        "description": "Fetch all voting results on parliamentary matters from during the last 30 days, or at least from matters having had votes that are in the 100 most recent votes that have happened, grouped by parliamentary matters.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Aanestys"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Votes"
        ]
      }
    },
    "/api/v1/valtiopaivaasiat/{eduskuntatunnus+}": {
      "get": {
        "operationId": "getValtiopaivaasia",
        "summary": "Matter by ID",
        "description": "  Fetch a single parliamentary matter by ID (eduskuntatunnus).",
        "parameters": [
          {
            "name": "eduskuntatunnus+",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Valtiopaivaasia"
                }
              }
            }
          }
        },
        "tags": [
          "Parliamentary Matters"
        ]
      }
    },
    "/api/v1/valtiopaivaasiat/{id+}/xml": {
      "get": {
        "operationId": "getValtiopaivaasiaXml",
        "summary": "Matter raw XML by ID",
        "description": "  Fetch the XML representation of a single parliamentary matter by ID (eduskuntatunnus). This is the raw unprocessed XML from the originating system.",
        "parameters": [
          {
            "name": "id+",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "tags": [
          "Parliamentary Matters"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Aanestys": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "istunnonTunniste": {
            "type": "string",
            "nullable": true
          },
          "paivajarjestyksenotsikko": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/AanestysLanguageSpecificStringValues"
              }
            ],
            "nullable": true
          },
          "aanestysotsikko": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/AanestysLanguageSpecificStringValues"
              }
            ],
            "nullable": true
          },
          "ilmoitettualkuaika": {
            "type": "string",
            "nullable": true
          },
          "istuntovpvuosi": {
            "type": "string",
            "nullable": true
          },
          "istuntonumero": {
            "type": "string",
            "nullable": true
          },
          "istuntopvm": {
            "type": "string",
            "nullable": true
          },
          "istuntoalkuaika": {
            "type": "string",
            "nullable": true
          },
          "aanestysnumero": {
            "type": "string",
            "nullable": true
          },
          "aanestysalkuaika": {
            "type": "string",
            "nullable": true
          },
          "aanestysloppuaika": {
            "type": "string",
            "nullable": true
          },
          "aanestysmitatoity": {
            "type": "boolean",
            "nullable": true
          },
          "kohta": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/Kohta"
              }
            ],
            "nullable": true
          },
          "puhemies": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/Puhemies"
              }
            ],
            "nullable": true
          },
          "aanestystapahtumat": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EdustajanAanestys"
            },
            "nullable": true
          },
          "aanestystulos": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/Aanestystulos"
              }
            ],
            "nullable": true
          },
          "hallitusoppositioJakaumat": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Aanestysjakauma"
            },
            "nullable": true
          },
          "eduskuntaryhmaJakaumat": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Aanestysjakauma"
            },
            "nullable": true
          },
          "vaalipiiriJakaumat": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Aanestysjakauma"
            },
            "nullable": true
          }
        }
      },
      "AanestysLangFieldBaseName": {
        "type": "string",
        "enum": [
          "paivajarjestyksenotsikko",
          "aanestysotsikko",
          "kasittelyotsikkonimi",
          "kasittelyvaihenimi",
          "otsikko",
          "paaasiakirjaEduskuntatunnus",
          "eduskuntatunnukset",
          "alkuotsikko",
          "loppuotsikko",
          "titteli",
          "edkryhmalyhenne",
          "eduskuntaryhma",
          "vaalipiiri",
          "sukupuoli",
          "kayttaytyminen",
          "nimi"
        ]
      },
      "AanestysLanguageSpecificStringValues": {
        "type": "object",
        "required": [
          "fi",
          "sv"
        ],
        "properties": {
          "fi": {
            "type": "string",
            "nullable": true
          },
          "sv": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "Aanestysjakauma": {
        "type": "object",
        "required": [
          "nimi"
        ],
        "properties": {
          "nimi": {
            "$ref": "#/components/schemas/AanestysLanguageSpecificStringValues"
          }
        },
        "allOf": [
          {
            "$ref": "#/components/schemas/Aanestystulos"
          }
        ]
      },
      "Aanestystulos": {
        "type": "object",
        "required": [
          "jaa",
          "ei",
          "tyhjia",
          "poissa",
          "yhteensa"
        ],
        "properties": {
          "jaa": {
            "type": "integer"
          },
          "ei": {
            "type": "integer"
          },
          "tyhjia": {
            "type": "integer"
          },
          "poissa": {
            "type": "integer"
          },
          "yhteensa": {
            "type": "integer"
          }
        }
      },
      "AggCardinality": {
        "type": "object",
        "required": [
          "max"
        ],
        "properties": {
          "total": {
            "type": "integer"
          },
          "unique": {
            "type": "integer"
          },
          "excluded": {
            "type": "integer"
          },
          "max": {
            "type": "integer"
          }
        }
      },
      "AggMetadata": {
        "type": "object",
        "properties": {
          "cardinality": {
            "$ref": "#/components/schemas/AggCardinality"
          },
          "range": {
            "$ref": "#/components/schemas/AggTimeRange"
          }
        }
      },
      "AggRequest": {
        "type": "object",
        "required": [
          "category",
          "agg"
        ],
        "properties": {
          "category": {
            "type": "string"
          },
          "expression": {
            "$ref": "#/components/schemas/ExpressionType"
          },
          "agg": {
            "type": "object",
            "properties": {
              "unique": {
                "$ref": "#/components/schemas/UniqueByAggregation"
              },
              "range": {
                "$ref": "#/components/schemas/TimeRangeAggregation"
              }
            }
          }
        },
        "description": "An aggregation request"
      },
      "AggResponse": {
        "type": "object",
        "required": [
          "results",
          "aggMetadata"
        ],
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AggResult"
            }
          },
          "name": {
            "type": "string"
          },
          "aggMetadata": {
            "$ref": "#/components/schemas/AggMetadata"
          }
        }
      },
      "AggResult": {
        "type": "object",
        "required": [
          "key",
          "docCount"
        ],
        "properties": {
          "key": {},
          "docCount": {
            "type": "integer"
          },
          "toParentDocCount": {
            "type": "integer"
          },
          "plusCount": {
            "type": "integer"
          }
        }
      },
      "AggTimeRange": {
        "type": "object",
        "required": [
          "max"
        ],
        "properties": {
          "total": {
            "type": "integer"
          },
          "rangesCount": {
            "type": "integer"
          },
          "excluded": {
            "type": "integer"
          },
          "max": {
            "type": "integer"
          }
        }
      },
      "Aggregation": {
        "type": "object",
        "properties": {
          "unique": {
            "$ref": "#/components/schemas/UniqueByAggregation"
          },
          "expression": {
            "$ref": "#/components/schemas/ExpressionType"
          },
          "agg": {
            "$ref": "#/components/schemas/UniqueByAggregation"
          },
          "range": {
            "$ref": "#/components/schemas/TimeRangeAggregation"
          }
        },
        "description": "An aggregation body"
      },
      "Aihe": {
        "type": "object",
        "required": [
          "muutunnus",
          "aiheteksti",
          "asiasanaJarjestys"
        ],
        "properties": {
          "muutunnus": {
            "type": "string",
            "nullable": true
          },
          "aiheteksti": {
            "type": "string"
          },
          "asiasanaJarjestys": {
            "type": "integer",
            "nullable": true
          }
        }
      },
      "AlgoliaSearchableAttributes": {
        "type": "string",
        "enum": [
          "eduskuntatunnus",
          "henkilonro",
          "nimeketeksti",
          "sukunimi",
          "puhuja",
          "kutsumanimi",
          "eduskuntaryhma",
          "vaalipiiri",
          "ammatti",
          "nimeke",
          "puheenvuoro",
          "asiakirjatyyppinimi",
          "etunimet",
          "text",
          "paaasiakirjaEduskuntatunnus",
          "paaasiakirjaNimeke",
          "poytakirjaAsiakohtaEduskuntatunnus",
          "aanestysnumero",
          "aanestysotsikko",
          "istunnonTunniste",
          "kasittelyvaihenimi",
          "asiasanat",
          "toimijaLaatijaHenkilo",
          "toimijaLaatijaYhteiso",
          "kotikunta",
          "syntymapaikka",
          "valtioneuvostonJasenyydet",
          "nykyinenMinisteriys",
          "valiokuntajasenyydet",
          "toimielinjasenyydet",
          "eduskuntaryhmaTehtavat",
          "koulutukset",
          "tyoura",
          "kokonaispaatosnimi",
          "otsikko",
          "teaserText",
          "sidonnaisuudet_sidonta",
          "koulutukset_koulutus",
          "tyopaikat_tyopaikka",
          "toimielinjasenyydet_jasenyys",
          "valiokuntajasenyydet_jasenyys",
          "ehdotukset_ehdotus",
          "snippet",
          "antaja"
        ]
      },
      "AndExpression": {
        "type": "object",
        "required": [
          "and"
        ],
        "properties": {
          "and": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExpressionType"
            }
          }
        },
        "description": "A criterion for combining multiple criteria with a logical AND.\n\nExample:\n  and: [\n      { property: \"kutsumanimi\", match: \"Petteri\" },\n      { property: \"sukunimi\", match: \"Kokoomus\" }\n  ]"
      },
      "Asiakirja": {
        "type": "object",
        "properties": {
          "edktunnus": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "eduskuntatunnus": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "asiakirjatyyppinimi": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "asiakirjatyyppikoodi": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "vireilletuloEduskuntatunnus": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "vireilletuloAsiatyyppiNimi": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "vireilletuloAsiatyyppikoodi": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "nimeketeksti": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "valiokuntanimi": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "laadintapvm": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "htmlSaatavilla": {
            "type": "boolean",
            "nullable": true
          },
          "liiteSaatavilla": {
            "type": "boolean",
            "nullable": true,
            "default": true
          },
          "toimijaLaatija": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/ToimijaLaatija"
              }
            ],
            "nullable": true
          },
          "asiasanat": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Aihe"
            },
            "nullable": true,
            "default": null
          },
          "asiakohta": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "kielikoodi": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "viimeisinJulkaisuajankohta": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "valtiopaivavuosi": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "vaalikausitunnus": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "snippet": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "asiakirjaKohtanumero": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "fullText": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "fullTextSnippet": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "jarjestysnumero": {
            "type": "integer",
            "nullable": true
          },
          "lisaJarjestysnumero": {
            "type": "integer",
            "nullable": true
          },
          "historiallinen": {
            "type": "boolean",
            "nullable": true,
            "default": null
          }
        }
      },
      "AsiakirjaHenkilo": {
        "type": "object",
        "required": [
          "henkilonro",
          "nimi"
        ],
        "properties": {
          "henkilonro": {
            "type": "string"
          },
          "nimi": {
            "type": "string"
          },
          "eduskuntaryhma": {
            "type": "object",
            "properties": {
              "nimi": {
                "type": "string"
              },
              "tunnus": {
                "type": "string"
              },
              "alkupvm": {
                "type": "string"
              },
              "loppupvm": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "nimi",
              "tunnus",
              "alkupvm",
              "loppupvm"
            ],
            "nullable": true,
            "default": null
          }
        }
      },
      "AsiakirjaList": {
        "type": "object",
        "required": [
          "asiakirjat"
        ],
        "properties": {
          "asiakirjat": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Asiakirja"
            }
          }
        }
      },
      "Asiakirjat": {
        "type": "object",
        "required": [
          "paaasiakirjaEduskuntatunnus",
          "paaasiakirjaAsiatyyppi",
          "paaasiakirjaTehtavaluokka",
          "eduskuntatunnukset"
        ],
        "properties": {
          "paaasiakirjaEduskuntatunnus": {
            "$ref": "#/components/schemas/AanestysLanguageSpecificStringValues"
          },
          "paaasiakirjaAsiatyyppi": {
            "type": "string",
            "nullable": true
          },
          "paaasiakirjaTehtavaluokka": {
            "type": "string",
            "nullable": true
          },
          "eduskuntatunnukset": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AanestysLanguageSpecificStringValues"
            }
          }
        }
      },
      "Asiakirjaviite": {
        "type": "object",
        "properties": {
          "eduskuntatunnus": {
            "type": "string"
          },
          "asiakirjatyyppi": {
            "type": "string"
          },
          "muuViite": {
            "type": "string",
            "nullable": true
          },
          "tarkenne": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "AsiakohtaAsiakirjaViite": {
        "type": "object",
        "properties": {
          "eduskuntatunnus": {
            "type": "string"
          }
        }
      },
      "AsiantuntijaLausunto": {
        "type": "object",
        "required": [
          "eduskuntatunnus",
          "asiakirjatyyppinimi",
          "asiakirjatyyppikoodi",
          "nimeketeksti",
          "valiokuntanimi",
          "laadintapvm",
          "edktunnus",
          "viimeisinJulkaisuajankohta",
          "htmlSaatavilla",
          "liiteSaatavilla",
          "lausuntoJarjestys"
        ],
        "properties": {
          "eduskuntatunnus": {
            "type": "string",
            "nullable": true
          },
          "asiakirjatyyppinimi": {
            "type": "string",
            "nullable": true
          },
          "asiakirjatyyppikoodi": {
            "type": "string",
            "nullable": true
          },
          "nimeketeksti": {
            "type": "string",
            "nullable": true
          },
          "valiokuntanimi": {
            "type": "string",
            "nullable": true
          },
          "laadintapvm": {
            "type": "string",
            "nullable": true
          },
          "edktunnus": {
            "type": "string",
            "nullable": true
          },
          "viimeisinJulkaisuajankohta": {
            "type": "string",
            "nullable": true
          },
          "htmlSaatavilla": {
            "type": "boolean"
          },
          "liiteSaatavilla": {
            "type": "boolean",
            "default": true
          },
          "lausuntoJarjestys": {
            "type": "integer"
          }
        }
      },
      "Avustettava": {
        "type": "object",
        "required": [
          "henkilonro",
          "kutsumanimi",
          "sukunimi",
          "eduskuntaryhmatunnus"
        ],
        "properties": {
          "henkilonro": {
            "type": "string"
          },
          "kutsumanimi": {
            "type": "string"
          },
          "sukunimi": {
            "type": "string"
          },
          "eduskuntaryhmatunnus": {
            "type": "string"
          }
        }
      },
      "BooleanEqualsExpression": {
        "type": "object",
        "required": [
          "property",
          "boolValue"
        ],
        "properties": {
          "property": {
            "type": "string"
          },
          "boolValue": {
            "type": "boolean"
          }
        },
        "description": "A criterion for exact matching to a boolean property.",
        "example": {
          "property": "aktiivinen",
          "boolValue": true
        }
      },
      "CountResponse": {
        "type": "object",
        "required": [
          "count"
        ],
        "properties": {
          "count": {
            "type": "integer"
          }
        }
      },
      "DatasetFormat": {
        "type": "string",
        "enum": [
          "ndjson",
          "xml",
          "pdf"
        ],
        "description": "The format of the dataset to be returned. Defaults to 'ndjson' if not specified. Xml and pdf formats are only supported for category asiakirja."
      },
      "DateRangeExpression": {
        "type": "object",
        "required": [
          "property",
          "fromDate",
          "toDate"
        ],
        "properties": {
          "property": {
            "type": "string"
          },
          "fromDate": {
            "type": "string",
            "nullable": true
          },
          "toDate": {
            "type": "string",
            "nullable": true
          }
        },
        "description": "A criterion for matching an date property within a range. From is inclusive, to is exclusive. Either may be omitted.",
        "example": {
          "property": "laadintapvm",
          "fromDate": "2020-01-01",
          "toDate": "2025-01-01"
        }
      },
      "DocumentResponse": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/SearchError"
          },
          {
            "type": "string"
          }
        ]
      },
      "Eduskuntaryhma": {
        "type": "object",
        "required": [
          "nimi",
          "tunnus",
          "alkupvm",
          "loppupvm"
        ],
        "properties": {
          "nimi": {
            "$ref": "#/components/schemas/Nimi"
          },
          "tunnus": {
            "type": "string"
          },
          "alkupvm": {
            "type": "string"
          },
          "loppupvm": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "EduskuntaryhmaTehtava": {
        "type": "object",
        "required": [
          "alkupvm",
          "loppupvm",
          "nimi",
          "tehtava"
        ],
        "properties": {
          "alkupvm": {
            "type": "string"
          },
          "loppupvm": {
            "type": "string",
            "nullable": true
          },
          "nimi": {
            "$ref": "#/components/schemas/Nimi"
          },
          "tehtava": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string"
              },
              "sv": {
                "type": "string",
                "nullable": true
              },
              "en": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ]
          }
        }
      },
      "Edustaja": {
        "type": "object",
        "required": [
          "henkilonumero",
          "sukunimi",
          "etunimi",
          "edkryhmalyhenne"
        ],
        "properties": {
          "henkilonumero": {
            "type": "string"
          },
          "sukunimi": {
            "type": "string"
          },
          "etunimi": {
            "type": "string"
          },
          "edkryhmalyhenne": {
            "$ref": "#/components/schemas/AanestysLanguageSpecificStringValues"
          }
        }
      },
      "EdustajanAanestys": {
        "type": "object",
        "required": [
          "vaalipiiri",
          "eduskuntaryhma",
          "sukupuoli",
          "kayttaytyminen"
        ],
        "properties": {
          "vaalipiiri": {
            "$ref": "#/components/schemas/AanestysLanguageSpecificStringValues"
          },
          "eduskuntaryhma": {
            "$ref": "#/components/schemas/AanestysLanguageSpecificStringValues"
          },
          "sukupuoli": {
            "$ref": "#/components/schemas/AanestysLanguageSpecificStringValues"
          },
          "kayttaytyminen": {
            "$ref": "#/components/schemas/AanestysLanguageSpecificStringValues"
          }
        },
        "allOf": [
          {
            "$ref": "#/components/schemas/Edustaja"
          }
        ]
      },
      "EdustajantoimenTila": {
        "type": "string",
        "enum": [
          "Keskeytynyt",
          "Nykyinen",
          "Entinen"
        ]
      },
      "Edustajatoimi": {
        "type": "object",
        "required": [
          "alkupvm",
          "loppupvm"
        ],
        "properties": {
          "alkupvm": {
            "type": "string"
          },
          "loppupvm": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "Ehdotus": {
        "type": "object",
        "required": [
          "nimeke",
          "ehdotusnumero",
          "saatamisjarjestys",
          "vahvistuspvm",
          "paatoskoodi",
          "paatosnimi",
          "saadoskokoelmaviite",
          "sopimussarjaviite"
        ],
        "properties": {
          "nimeke": {
            "type": "string"
          },
          "ehdotusnumero": {
            "type": "integer",
            "nullable": true
          },
          "saatamisjarjestys": {
            "type": "string",
            "nullable": true
          },
          "vahvistuspvm": {
            "type": "string",
            "nullable": true
          },
          "paatoskoodi": {
            "type": "string",
            "nullable": true
          },
          "paatosnimi": {
            "type": "string",
            "nullable": true
          },
          "saadoskokoelmaviite": {
            "type": "string",
            "nullable": true
          },
          "sopimussarjaviite": {
            "type": "string",
            "nullable": true,
            "default": null
          }
        }
      },
      "EnsimmainenAllekirjoittajaItem": {
        "type": "object",
        "required": [
          "rooli",
          "etunimi",
          "sukunimi",
          "eduskuntaryhma"
        ],
        "properties": {
          "rooli": {
            "type": "string",
            "nullable": true
          },
          "etunimi": {
            "type": "string",
            "nullable": true
          },
          "sukunimi": {
            "type": "string",
            "nullable": true
          },
          "henkilonro": {
            "type": "string",
            "nullable": true
          },
          "eduskuntaryhma": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "EuViittaus": {
        "type": "object",
        "required": [
          "eduskuntatunnus",
          "otsikkoteksti",
          "viittausJarjestys"
        ],
        "properties": {
          "eduskuntatunnus": {
            "type": "string",
            "nullable": true
          },
          "otsikkoteksti": {
            "type": "string",
            "nullable": true
          },
          "viittausJarjestys": {
            "type": "integer"
          }
        }
      },
      "ExistsExpression": {
        "type": "object",
        "required": [
          "exists"
        ],
        "properties": {
          "exists": {
            "type": "string"
          }
        },
        "description": "A criterion for determining the existance of a property in an object.\n\nExample: {\n  exists: \"loppupvm\"\n}"
      },
      "ExpressionType": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/AndExpression"
          },
          {
            "$ref": "#/components/schemas/OrExpression"
          },
          {
            "$ref": "#/components/schemas/NotExpression"
          },
          {
            "$ref": "#/components/schemas/ExistsExpression"
          },
          {
            "$ref": "#/components/schemas/WithinObjectExpression"
          },
          {
            "$ref": "#/components/schemas/StringEqualsExpression"
          },
          {
            "$ref": "#/components/schemas/IntegerEqualsExpression"
          },
          {
            "$ref": "#/components/schemas/BooleanEqualsExpression"
          },
          {
            "$ref": "#/components/schemas/RangeExpression"
          },
          {
            "$ref": "#/components/schemas/DateRangeExpression"
          },
          {
            "$ref": "#/components/schemas/TextMatchExpression"
          },
          {
            "$ref": "#/components/schemas/TextMultiMatchExpression"
          },
          {
            "$ref": "#/components/schemas/TextMatchPhraseExpression"
          },
          {
            "$ref": "#/components/schemas/TextMatchPhrasePrefixExpression"
          },
          {
            "$ref": "#/components/schemas/IdListExpression"
          },
          {
            "$ref": "#/components/schemas/TermWithIdsExpression"
          }
        ]
      },
      "Fields": {
        "type": "object",
        "required": [
          "operation",
          "list"
        ],
        "properties": {
          "operation": {
            "type": "string",
            "enum": [
              "include",
              "exclude"
            ]
          },
          "list": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "description": "Contains a list of fields to either include or exclude in the search results. When fields are excluded from a\nsearch result, the field will not be present in the result object. When fields are included, only those fields\nwill be present in the result object.\n\nExample:{\n  operation: \"exclude\", list: [\"fullText\"]\n}"
      },
      "Fraasi": {
        "type": "object",
        "required": [
          "fraasisisalto",
          "fraasiryhmat"
        ],
        "properties": {
          "fraasisisalto": {
            "type": "string",
            "nullable": true
          },
          "fraasiryhmat": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Fraasiryhma"
            },
            "nullable": true
          }
        }
      },
      "FraasiToimija": {
        "type": "object",
        "required": [
          "fraasiyhteistoteksti",
          "fraasihenkilo"
        ],
        "properties": {
          "fraasiyhteistoteksti": {
            "type": "string",
            "nullable": true
          },
          "fraasihenkilo": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/Fraasihenkilo"
              }
            ],
            "nullable": true
          }
        }
      },
      "Fraasihenkilo": {
        "type": "object",
        "required": [
          "fraasietunimi",
          "fraasisukunimi",
          "fraasiasemateksti"
        ],
        "properties": {
          "fraasietunimi": {
            "type": "string",
            "nullable": true
          },
          "fraasisukunimi": {
            "type": "string",
            "nullable": true
          },
          "fraasiasemateksti": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "Fraasiryhma": {
        "type": "object",
        "required": [
          "fraasiToimijat",
          "fraasiKappaleKooste"
        ],
        "properties": {
          "fraasiToimijat": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FraasiToimija"
            },
            "nullable": true
          },
          "fraasiKappaleKooste": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "HighlightResult": {
        "type": "object",
        "properties": {
          "etunimet": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "sukunimi": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "kutsumanimi": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "eduskuntaryhma": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "vaalipiiri": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "ammatti": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "eduskuntatunnus": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "nimeke": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "nimeketeksti": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "puheenvuoro": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "puhuja": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "asiakirjatyyppinimi": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "asiakohta": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "aanestysnumero": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "aanestysotsikko": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "paaasiakirjaEduskuntatunnus": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "paaasiakirjaNimeke": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "poytakirjaAsiakohtaEduskuntatunnus": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "istunnonTunniste": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "kasittelyvaihenimi": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "kotikunta": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "syntymapaikka": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "nykyinenMinisteriys": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "toimijaLaatijaHenkilo": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "toimijaLaatijaYhteiso": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "asiasanat": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "kokonaispaatosnimi": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "sidonnaisuudet": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "sidonta": {
                  "$ref": "#/components/schemas/HighlightResultEntry"
                }
              }
            }
          },
          "koulutukset": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "koulutus": {
                  "$ref": "#/components/schemas/HighlightResultEntry"
                }
              }
            }
          },
          "tyopaikat": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "tyopaikka": {
                  "$ref": "#/components/schemas/HighlightResultEntry"
                }
              }
            }
          },
          "toimielinjasenyydet": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "jasenyys": {
                  "$ref": "#/components/schemas/HighlightResultEntry"
                }
              }
            }
          },
          "valiokuntajasenyydet": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "jasenyys": {
                  "$ref": "#/components/schemas/HighlightResultEntry"
                }
              }
            }
          },
          "ehdotukset": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "ehdotus": {
                  "$ref": "#/components/schemas/HighlightResultEntry"
                }
              }
            }
          },
          "otsikko": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "teaserText": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "snippet": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          },
          "antaja": {
            "$ref": "#/components/schemas/HighlightResultEntry"
          }
        }
      },
      "HighlightResultEntry": {
        "type": "object",
        "required": [
          "value",
          "matchedWords"
        ],
        "properties": {
          "value": {
            "type": "string"
          },
          "matchedWords": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "IdListExpression": {
        "type": "object",
        "required": [
          "ids"
        ],
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "description": "A criterion for matching any of a list of IDs.",
        "example": {
          "ids": [
            "123",
            "456"
          ]
        }
      },
      "IntegerEqualsExpression": {
        "type": "object",
        "required": [
          "property",
          "intValue"
        ],
        "properties": {
          "property": {
            "type": "string"
          },
          "intValue": {
            "type": "integer"
          }
        },
        "description": "A criterion for exact matching to an integer property.",
        "example": {
          "property": "ika",
          "intValue": 42
        }
      },
      "Jaosto": {
        "type": "object",
        "required": [
          "nimi",
          "tunnus"
        ],
        "properties": {
          "nimi": {
            "type": "string",
            "nullable": true
          },
          "tunnus": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "Kansanedustaja": {
        "type": "object",
        "properties": {
          "henkilonro": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "etunimet": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "sukunimi": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "kutsumanimi": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "kotikunta": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "syntymavuosi": {
            "type": "integer",
            "nullable": true,
            "default": null
          },
          "kuolemavuosi": {
            "type": "integer",
            "nullable": true,
            "default": null
          },
          "syntymapaikka": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "sukupuolikoodi": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "ammatti": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              },
              "en": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ],
            "nullable": true,
            "default": null
          },
          "sahkoposti": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "puhelinnumero": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "kansanedustajuusPaattynytPvm": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "edustajantoimenTila": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EdustajantoimenTila"
              }
            ],
            "nullable": true,
            "default": null
          },
          "viimeisinEduskuntaryhma": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/Eduskuntaryhma"
              }
            ],
            "nullable": true,
            "default": null
          },
          "eduskuntaryhmat": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Eduskuntaryhma"
            },
            "nullable": true,
            "default": null
          },
          "edustajatoimet": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Edustajatoimi"
            },
            "nullable": true,
            "default": null
          },
          "viimeisinVaalipiiri": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/Vaalipiiri"
              }
            ],
            "nullable": true,
            "default": null
          },
          "vaalipiirit": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Vaalipiiri"
            },
            "nullable": true,
            "default": null
          },
          "sidonnaisuudet": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Sidonnaisuus"
                }
              },
              "sv": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Sidonnaisuus"
                }
              },
              "en": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Sidonnaisuus"
                }
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ],
            "nullable": true,
            "default": null
          },
          "valtioneuvostonJasenyydet": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ValtioneuvostonJasenyys"
                },
                "default": []
              },
              "sv": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ValtioneuvostonJasenyys"
                },
                "default": []
              },
              "en": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ValtioneuvostonJasenyys"
                },
                "default": []
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ],
            "nullable": true,
            "default": null
          },
          "valiokuntajasenyydet": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Valiokuntajasenyys"
            },
            "nullable": true,
            "default": null
          },
          "toimielinjasenyydet": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Toimielin"
                }
              },
              "sv": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Toimielin"
                }
              },
              "en": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Toimielin"
                }
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ],
            "nullable": true,
            "default": null
          },
          "eduskuntaryhmaTehtavat": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EduskuntaryhmaTehtava"
            },
            "nullable": true,
            "default": null
          },
          "koulutukset": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Koulutus"
            },
            "nullable": true,
            "default": null
          },
          "edustajatoimiKeskeytynyt": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToimenKeskeytys"
            },
            "nullable": true,
            "default": null
          },
          "edustajatoimiSijaisuus": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToimenKeskeytys"
            },
            "nullable": true,
            "default": null
          },
          "tyoura": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Tyo"
                }
              },
              "sv": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Tyo"
                }
              },
              "en": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Tyo"
                }
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ],
            "nullable": true,
            "default": null
          },
          "nykyinenMinisteriys": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              },
              "en": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ],
            "nullable": true,
            "default": null
          }
        }
      },
      "KansanedustajaLangFieldBaseName": {
        "type": "string",
        "enum": [
          "ammatti",
          "nimi",
          "ministeriys",
          "tehtava",
          "selite"
        ]
      },
      "KansanedustajaLangSplitNestedRoot": {
        "type": "string",
        "enum": [
          "tyoura",
          "sidonnaisuudet",
          "toimielinjasenyydet"
        ]
      },
      "KansanedustajaList": {
        "type": "object",
        "required": [
          "kansanedustajat"
        ],
        "properties": {
          "kansanedustajat": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Kansanedustaja"
            }
          },
          "searchMetadata": {
            "$ref": "#/components/schemas/SearchMetadata"
          }
        }
      },
      "Kasittely": {
        "type": "object",
        "required": [
          "tapahtumapvm",
          "kasittelyvaihe",
          "kasittelytunnus",
          "yleinenkasittelyvaihe",
          "yleinenkasittelyvaihetunnus",
          "valiokunta",
          "jarjestys",
          "fraasi",
          "toimenpideToimijat",
          "muidenAllekirjoittajienLkm"
        ],
        "properties": {
          "tapahtumapvm": {
            "type": "string",
            "nullable": true
          },
          "kasittelyvaihe": {
            "type": "string",
            "nullable": true
          },
          "kasittelytunnus": {
            "type": "string"
          },
          "yleinenkasittelyvaihe": {
            "type": "string",
            "nullable": true
          },
          "yleinenkasittelyvaihetunnus": {
            "type": "string"
          },
          "valiokunta": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/Valiokunta"
              }
            ],
            "nullable": true
          },
          "jarjestys": {
            "type": "integer"
          },
          "fraasi": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/Fraasi"
              }
            ],
            "nullable": true
          },
          "toimenpideToimijat": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToimenpideToimija"
            }
          },
          "muidenAllekirjoittajienLkm": {
            "type": "integer",
            "nullable": true,
            "default": null
          }
        }
      },
      "KasittelynAsiakirja": {
        "type": "object",
        "required": [
          "kasittelytunnus",
          "eduskuntatunnus",
          "asiakirjatyyppinimi",
          "asiakirjatyyppikoodi",
          "nimeketeksti",
          "valiokuntanimi",
          "laadintapvm",
          "edktunnus",
          "viimeisinJulkaisuajankohta",
          "asiakirjaviitejarjestys",
          "htmlSaatavilla",
          "liiteSaatavilla"
        ],
        "properties": {
          "kasittelytunnus": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "eduskuntatunnus": {
            "type": "string",
            "nullable": true
          },
          "asiakirjatyyppinimi": {
            "type": "string",
            "nullable": true
          },
          "asiakirjatyyppikoodi": {
            "type": "string",
            "nullable": true
          },
          "nimeketeksti": {
            "type": "string",
            "nullable": true
          },
          "valiokuntanimi": {
            "type": "string",
            "nullable": true
          },
          "laadintapvm": {
            "type": "string",
            "nullable": true
          },
          "edktunnus": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "viimeisinJulkaisuajankohta": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "asiakirjaviitejarjestys": {
            "type": "integer",
            "nullable": true,
            "default": null
          },
          "htmlSaatavilla": {
            "type": "boolean"
          },
          "liiteSaatavilla": {
            "type": "boolean",
            "default": true
          }
        }
      },
      "KeskeinenAsiakirja": {
        "type": "object",
        "required": [
          "eduskuntatunnus",
          "asiakirjatyyppinimi",
          "asiakirjatyyppikoodi",
          "nimeketeksti",
          "valiokuntanimi",
          "laadintapvm",
          "edktunnus",
          "viimeisinJulkaisuajankohta",
          "htmlSaatavilla",
          "liiteSaatavilla",
          "asiakirjaJarjestys"
        ],
        "properties": {
          "eduskuntatunnus": {
            "type": "string"
          },
          "asiakirjatyyppinimi": {
            "type": "string",
            "nullable": true
          },
          "asiakirjatyyppikoodi": {
            "type": "string",
            "nullable": true
          },
          "nimeketeksti": {
            "type": "string",
            "nullable": true
          },
          "valiokuntanimi": {
            "type": "string",
            "nullable": true
          },
          "laadintapvm": {
            "type": "string",
            "nullable": true
          },
          "edktunnus": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "viimeisinJulkaisuajankohta": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "htmlSaatavilla": {
            "type": "boolean"
          },
          "liiteSaatavilla": {
            "type": "boolean",
            "default": true
          },
          "asiakirjaJarjestys": {
            "type": "integer"
          }
        }
      },
      "Kohta": {
        "type": "object",
        "required": [
          "kasittelyotsikkonimi",
          "kasittelyvaihenimi",
          "jarjestys",
          "tunniste",
          "nakyykokohtatunniste",
          "otsikko",
          "asiakirjat"
        ],
        "properties": {
          "kasittelyotsikkonimi": {
            "$ref": "#/components/schemas/AanestysLanguageSpecificStringValues"
          },
          "kasittelyvaihenimi": {
            "$ref": "#/components/schemas/AanestysLanguageSpecificStringValues"
          },
          "jarjestys": {
            "type": "string",
            "nullable": true
          },
          "tunniste": {
            "type": "string",
            "nullable": true
          },
          "nakyykokohtatunniste": {
            "type": "boolean"
          },
          "otsikko": {
            "$ref": "#/components/schemas/AanestysLanguageSpecificStringValues"
          },
          "asiakirjat": {
            "$ref": "#/components/schemas/Asiakirjat"
          }
        }
      },
      "Koulutus": {
        "type": "object",
        "required": [
          "vuosi",
          "nimi",
          "oppilaitos"
        ],
        "properties": {
          "vuosi": {
            "type": "integer",
            "nullable": true
          },
          "nimi": {
            "$ref": "#/components/schemas/Nimi"
          },
          "oppilaitos": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              },
              "en": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ]
          }
        }
      },
      "Linkki": {
        "type": "object",
        "required": [
          "nimi",
          "kohde"
        ],
        "properties": {
          "nimi": {
            "type": "string"
          },
          "kohde": {
            "type": "string"
          }
        }
      },
      "LocalizedString": {
        "type": "object",
        "properties": {
          "fi": {
            "type": "string",
            "nullable": true
          },
          "sv": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "Multiviite": {
        "type": "object",
        "required": [
          "multiviitetunnus",
          "kielikoodi",
          "multiviite",
          "multiviitejarjestys"
        ],
        "properties": {
          "multiviitetunnus": {
            "type": "string",
            "nullable": true
          },
          "kielikoodi": {
            "type": "string",
            "nullable": true
          },
          "multiviite": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MultiviiteItem"
            }
          },
          "multiviitejarjestys": {
            "type": "integer",
            "nullable": true
          }
        }
      },
      "MultiviiteItem": {
        "type": "object",
        "required": [
          "vuosi",
          "alkuAsiakirja",
          "loppuAsiakirja",
          "asiakirjatyyppi"
        ],
        "properties": {
          "vuosi": {
            "type": "string"
          },
          "alkuAsiakirja": {
            "type": "string"
          },
          "loppuAsiakirja": {
            "type": "string",
            "nullable": true
          },
          "asiakirjatyyppi": {
            "type": "string"
          }
        }
      },
      "Nimi": {
        "type": "object",
        "required": [
          "fi",
          "sv",
          "en"
        ],
        "properties": {
          "fi": {
            "type": "string"
          },
          "sv": {
            "type": "string",
            "nullable": true
          },
          "en": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "NotExpression": {
        "type": "object",
        "required": [
          "not"
        ],
        "properties": {
          "not": {
            "$ref": "#/components/schemas/ExpressionType"
          }
        },
        "description": "A criterion for negating another criterion.\n\nExample:\n  not: { property: \"kutsumanimi\", match: \"Petteri\" }\n"
      },
      "OrExpression": {
        "type": "object",
        "required": [
          "or"
        ],
        "properties": {
          "or": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExpressionType"
            }
          }
        },
        "description": "A criterion for combining multiple criteria with a logical OR.\n\nExample:\n  or: [\n      { property: \"kutsumanimi\", match: \"Petteri\" },\n      { property: \"sukunimi\", match: \"Kokoomus\" }\n  ]\n"
      },
      "PoytakirjanAsiankohta": {
        "type": "object",
        "properties": {
          "eduskuntatunnus": {
            "type": "string"
          },
          "kohtanumero": {
            "type": "string"
          },
          "nimeketeksti": {
            "type": "string"
          }
        }
      },
      "PuheenjohtajanRepliikki": {
        "type": "object",
        "properties": {
          "puheenjohtaja": {
            "type": "string"
          },
          "repliikki": {
            "type": "string"
          },
          "asiakohtaAsiakirjaViitteet": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AsiakohtaAsiakirjaViite"
            }
          }
        }
      },
      "Puheenvuoro": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "tunnus": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              }
            },
            "nullable": true,
            "default": null
          },
          "tila": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "puheenvuorotyyppikoodi": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "puheenvuorotyyppinimi": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "valtiopaiva": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "valtiopaivavuosi": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "taysistuntonumero": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "asia": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "object",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PuheenvuoronAsia"
                  }
                ],
                "nullable": true
              },
              "sv": {
                "type": "object",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PuheenvuoronAsia"
                  }
                ],
                "nullable": true
              }
            },
            "nullable": true,
            "default": null
          },
          "poytakirjanasiankohta": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "object",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PoytakirjanAsiankohta"
                  }
                ],
                "nullable": true
              },
              "sv": {
                "type": "object",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PoytakirjanAsiankohta"
                  }
                ],
                "nullable": true
              }
            },
            "nullable": true,
            "default": null
          },
          "asiakirjaviitteet": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Asiakirjaviite"
                },
                "nullable": true
              },
              "sv": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Asiakirjaviite"
                },
                "nullable": true
              }
            },
            "nullable": true,
            "default": null
          },
          "puhuja": {
            "$ref": "#/components/schemas/Puhuja"
          },
          "aloitushetki": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "lopetushetki": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "kellonaika": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "puheenvuoro": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "puheenvuoroXml": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "puheenjohtajanRepliikki": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/PuheenjohtajanRepliikki"
              }
            ],
            "nullable": true,
            "default": null
          },
          "historiallinen": {
            "type": "boolean",
            "nullable": true,
            "default": null
          }
        }
      },
      "PuheenvuoroLangFieldBaseName": {
        "type": "string",
        "enum": [
          "tunnus",
          "asia",
          "poytakirjanasiankohta"
        ]
      },
      "PuheenvuoroLangSplitNestedRoot": {
        "type": "string",
        "enum": [
          "asiakirjaviitteet"
        ]
      },
      "PuheenvuoronAsia": {
        "type": "object",
        "properties": {
          "eduskuntatunnus": {
            "type": "string"
          },
          "nimeketeksti": {
            "type": "string"
          },
          "asiatyyppi": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "Puhemies": {
        "type": "object",
        "required": [
          "henkilonumero",
          "sukunimi",
          "etunimi",
          "alkuotsikko",
          "loppuotsikko",
          "titteli"
        ],
        "properties": {
          "henkilonumero": {
            "type": "string",
            "nullable": true
          },
          "sukunimi": {
            "type": "string",
            "nullable": true
          },
          "etunimi": {
            "type": "string",
            "nullable": true
          },
          "alkuotsikko": {
            "$ref": "#/components/schemas/AanestysLanguageSpecificStringValues"
          },
          "loppuotsikko": {
            "$ref": "#/components/schemas/AanestysLanguageSpecificStringValues"
          },
          "titteli": {
            "$ref": "#/components/schemas/AanestysLanguageSpecificStringValues"
          }
        }
      },
      "Puhuja": {
        "type": "object",
        "properties": {
          "henkilonro": {
            "type": "string"
          },
          "asema": {
            "type": "string",
            "nullable": true
          },
          "etunimi": {
            "type": "string"
          },
          "sukunimi": {
            "type": "string"
          },
          "lisatieto": {
            "type": "string",
            "nullable": true
          },
          "eduskuntaryhma_tunnus": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "QuickSearchRequest": {
        "type": "object",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "maxResults": {
            "type": "integer"
          },
          "startFromIndex": {
            "type": "integer"
          },
          "langCode": {
            "type": "string",
            "description": "Currently supported by 'kansanedustaja', 'valtiopaivaasia' & 'aanestys' categories"
          }
        },
        "description": "A quick search request. Only includes fuzzy text search. langCode defaults to 'fi' if not specified.",
        "example": {
          "query": "Kokoomus",
          "maxResults": 100,
          "startFromIndex": 0
        }
      },
      "RangeExpression": {
        "type": "object",
        "required": [
          "property",
          "from",
          "to"
        ],
        "properties": {
          "property": {
            "type": "string"
          },
          "from": {
            "type": "integer",
            "nullable": true
          },
          "to": {
            "type": "integer",
            "nullable": true
          }
        },
        "description": "A criterion for matching an integer property within a range. From is inclusive, to is exclusive. Either may be omitted.",
        "example": {
          "property": "ika",
          "from": 18,
          "to": 65
        }
      },
      "ReferenceData": {
        "type": "object",
        "required": [
          "tunnus",
          "koodi_fi",
          "koodi_sv",
          "koodi_en",
          "ryhma_tunnus",
          "nimi",
          "sukunimi",
          "nimi_fi",
          "nimi_sv",
          "nimi_en",
          "jarjestys",
          "aktiivinen",
          "ryhmakanslia",
          "alkupvm",
          "loppupvm"
        ],
        "properties": {
          "tunnus": {
            "type": "string",
            "nullable": true
          },
          "koodi_fi": {
            "type": "string",
            "nullable": true
          },
          "koodi_sv": {
            "type": "string",
            "nullable": true
          },
          "koodi_en": {
            "type": "string",
            "nullable": true
          },
          "ryhma_tunnus": {
            "type": "string",
            "nullable": true
          },
          "nimi": {
            "type": "string",
            "nullable": true
          },
          "sukunimi": {
            "type": "string",
            "nullable": true
          },
          "nimi_fi": {
            "type": "string",
            "nullable": true
          },
          "nimi_sv": {
            "type": "string",
            "nullable": true
          },
          "nimi_en": {
            "type": "string",
            "nullable": true
          },
          "jarjestys": {
            "type": "integer",
            "nullable": true
          },
          "aktiivinen": {
            "type": "boolean",
            "nullable": true
          },
          "ryhmakanslia": {
            "type": "string",
            "nullable": true
          },
          "alkupvm": {
            "type": "string",
            "nullable": true
          },
          "loppupvm": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "SearchError": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "SearchHighlight": {
        "type": "object",
        "additionalProperties": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "description": "OpenSearch highlight fragments, keyed by the highlighted field name."
      },
      "SearchMetadata": {
        "type": "object",
        "required": [
          "totalResultCount",
          "maxScore",
          "actualResultCount",
          "requestedResultCount",
          "startFromIndex"
        ],
        "properties": {
          "totalResultCount": {
            "type": "integer"
          },
          "maxScore": {
            "type": "number"
          },
          "actualResultCount": {
            "type": "integer"
          },
          "requestedResultCount": {
            "type": "integer"
          },
          "startFromIndex": {
            "type": "integer"
          }
        }
      },
      "SearchModelBundle": {
        "type": "object",
        "required": [
          "andExpression",
          "orExpression",
          "notExpression",
          "existsExpression",
          "withinObjectExpression",
          "stringEqualsExpression",
          "integerEqualsExpression",
          "booleanEqualsExpression",
          "rangeExpression",
          "dateRangeExpression",
          "textMatchExpression",
          "textMultiMatchExpression",
          "textMatchPhraseExpression",
          "textMatchPhrasePrefixExpression",
          "idListExpression",
          "termWithIdsExpression",
          "sort",
          "searchRequest",
          "quickSearchRequest",
          "searchResponse",
          "countResponse",
          "aggRequest",
          "aggResponse",
          "algoliaSearchableAttributes",
          "searchRequestDataset",
          "searchRequestDatasetV2"
        ],
        "properties": {
          "andExpression": {
            "$ref": "#/components/schemas/AndExpression"
          },
          "orExpression": {
            "$ref": "#/components/schemas/OrExpression"
          },
          "notExpression": {
            "$ref": "#/components/schemas/NotExpression"
          },
          "existsExpression": {
            "$ref": "#/components/schemas/ExistsExpression"
          },
          "withinObjectExpression": {
            "$ref": "#/components/schemas/WithinObjectExpression"
          },
          "stringEqualsExpression": {
            "$ref": "#/components/schemas/StringEqualsExpression"
          },
          "integerEqualsExpression": {
            "$ref": "#/components/schemas/IntegerEqualsExpression"
          },
          "booleanEqualsExpression": {
            "$ref": "#/components/schemas/BooleanEqualsExpression"
          },
          "rangeExpression": {
            "$ref": "#/components/schemas/RangeExpression"
          },
          "dateRangeExpression": {
            "$ref": "#/components/schemas/DateRangeExpression"
          },
          "textMatchExpression": {
            "$ref": "#/components/schemas/TextMatchExpression"
          },
          "textMultiMatchExpression": {
            "$ref": "#/components/schemas/TextMultiMatchExpression"
          },
          "textMatchPhraseExpression": {
            "$ref": "#/components/schemas/TextMatchPhraseExpression"
          },
          "textMatchPhrasePrefixExpression": {
            "$ref": "#/components/schemas/TextMatchPhrasePrefixExpression"
          },
          "idListExpression": {
            "$ref": "#/components/schemas/IdListExpression"
          },
          "termWithIdsExpression": {
            "$ref": "#/components/schemas/TermWithIdsExpression"
          },
          "sort": {
            "$ref": "#/components/schemas/Sort"
          },
          "searchRequest": {
            "$ref": "#/components/schemas/SearchRequest"
          },
          "quickSearchRequest": {
            "$ref": "#/components/schemas/QuickSearchRequest"
          },
          "searchResponse": {
            "$ref": "#/components/schemas/SearchResponse"
          },
          "countResponse": {
            "$ref": "#/components/schemas/CountResponse"
          },
          "aggRequest": {
            "$ref": "#/components/schemas/AggRequest"
          },
          "aggResponse": {
            "$ref": "#/components/schemas/AggResponse"
          },
          "algoliaSearchableAttributes": {
            "$ref": "#/components/schemas/AlgoliaSearchableAttributes"
          },
          "searchRequestDataset": {
            "$ref": "#/components/schemas/SearchRequestDataset"
          },
          "searchRequestDatasetV2": {
            "$ref": "#/components/schemas/SearchRequestDatasetV2"
          }
        },
        "description": "This is a bundle for all search related models. SearchModelBundle is not an actual query structure and as such, cant be used in queries. "
      },
      "SearchRequest": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "maxResults": {
            "type": "integer"
          },
          "startFromIndex": {
            "type": "integer"
          },
          "sort": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Sort"
            }
          },
          "fields": {
            "$ref": "#/components/schemas/Fields"
          },
          "fullTextHighlight": {
            "type": "boolean"
          },
          "highlightFields": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "aggs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Aggregation"
            }
          },
          "combinedSearch": {
            "type": "boolean",
            "default": true
          },
          "langCode": {
            "type": "string",
            "description": "Currently supported by 'kansanedustaja', 'valtiopaivaasia' & 'aanestys' categories"
          },
          "expression": {
            "$ref": "#/components/schemas/ExpressionType"
          }
        },
        "description": "A search request. The query property is a fuzzy text search, and the expression property is a specific criterion. The combinedSearch property determines whether the query parameter is used to make a quick search and combine it with the expression search. It is set to true by default. Setting it to false will disable the quick search and only use the expression search, which may also still use the query parameter. In most cases, setting it to false will improve performance.",
        "example": {
          "query": "Kokoomus",
          "maxResults": 100,
          "startFromIndex": 0,
          "expression": {
            "and": [
              {
                "property": "kutsumanimi",
                "match": "Petteri"
              },
              {
                "property": "vaalipiirit",
                "with": {
                  "property": "nimi",
                  "match": "Varsinais-Suomen"
                }
              }
            ]
          },
          "sort": [
            {
              "property": "henkilonro",
              "ascending": false
            }
          ]
        }
      },
      "SearchRequestDataset": {
        "type": "object",
        "required": [
          "category",
          "sort"
        ],
        "properties": {
          "query": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "sort": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Sort"
            }
          },
          "fields": {
            "$ref": "#/components/schemas/Fields"
          },
          "fullTextHighlight": {
            "type": "boolean"
          },
          "combinedSearch": {
            "type": "boolean",
            "default": true
          },
          "langCode": {
            "type": "string"
          },
          "expression": {
            "$ref": "#/components/schemas/ExpressionType"
          }
        }
      },
      "SearchRequestDatasetV2": {
        "type": "object",
        "required": [
          "category",
          "sort"
        ],
        "properties": {
          "query": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "sort": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Sort"
            }
          },
          "fields": {
            "$ref": "#/components/schemas/Fields"
          },
          "fullTextHighlight": {
            "type": "boolean"
          },
          "combinedSearch": {
            "type": "boolean",
            "default": true
          },
          "langCode": {
            "type": "string"
          },
          "format": {
            "$ref": "#/components/schemas/DatasetFormat"
          },
          "expression": {
            "$ref": "#/components/schemas/ExpressionType"
          }
        }
      },
      "SearchResponse": {
        "type": "object",
        "required": [
          "results",
          "searchMetadata"
        ],
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SearchResult"
            }
          },
          "aggs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AggResponse"
            }
          },
          "searchMetadata": {
            "$ref": "#/components/schemas/SearchMetadata"
          }
        }
      },
      "SearchResult": {
        "type": "object",
        "required": [
          "id",
          "type"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/SearchResultType"
          },
          "kansanedustaja": {
            "$ref": "#/components/schemas/Kansanedustaja"
          },
          "summaryKansanedustaja": {
            "$ref": "#/components/schemas/SummaryKansanedustaja"
          },
          "valtiopaivaasia": {
            "$ref": "#/components/schemas/Valtiopaivaasia"
          },
          "tapahtuma": {
            "$ref": "#/components/schemas/Tapahtuma"
          },
          "cmsSivu": {
            "$ref": "#/components/schemas/Sivu"
          },
          "sisaltosivu": {
            "$ref": "#/components/schemas/Sivu"
          },
          "tiedote": {
            "$ref": "#/components/schemas/Sivu"
          },
          "tiedosto": {
            "$ref": "#/components/schemas/Tiedosto"
          },
          "asiakirja": {
            "$ref": "#/components/schemas/Asiakirja"
          },
          "puheenvuoro": {
            "$ref": "#/components/schemas/Puheenvuoro"
          },
          "aanestys": {
            "$ref": "#/components/schemas/Aanestys"
          },
          "yhteystieto": {
            "$ref": "#/components/schemas/Yhteystieto"
          },
          "_highlightResult": {
            "$ref": "#/components/schemas/HighlightResult"
          },
          "_snippetResult": {
            "$ref": "#/components/schemas/SnippetResult"
          },
          "highlight": {
            "$ref": "#/components/schemas/SearchHighlight"
          },
          "searchResultMetadata": {
            "$ref": "#/components/schemas/SearchResultMetadata"
          }
        }
      },
      "SearchResultMetadata": {
        "type": "object",
        "required": [
          "score"
        ],
        "properties": {
          "score": {
            "type": "number"
          }
        }
      },
      "SearchResultType": {
        "type": "string",
        "enum": [
          "Kansanedustaja",
          "Valtiopaivaasia",
          "Tapahtuma",
          "CmsSivu",
          "Sisaltosivu",
          "Tiedote",
          "Tiedosto",
          "Asiakirja",
          "Puheenvuoro",
          "Aanestys",
          "Yhteystieto"
        ]
      },
      "Sidonnaisuus": {
        "type": "object",
        "required": [
          "sidonta",
          "ilmoitusTyyppi",
          "ryhmaotsikko",
          "vuosi",
          "jarjestys"
        ],
        "properties": {
          "sidonta": {
            "type": "string",
            "nullable": true
          },
          "ilmoitusTyyppi": {
            "type": "string",
            "nullable": true
          },
          "ryhmaotsikko": {
            "type": "string",
            "nullable": true
          },
          "vuosi": {
            "type": "string",
            "nullable": true
          },
          "jarjestys": {
            "type": "integer",
            "nullable": true
          }
        }
      },
      "Sivu": {
        "type": "object",
        "required": [
          "snippet"
        ],
        "properties": {
          "id": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "contentId": {
            "type": "integer",
            "nullable": true,
            "default": null
          },
          "contentTypeId": {
            "type": "integer",
            "nullable": true,
            "default": null
          },
          "contentType": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "ancestorIds": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "nullable": true,
            "default": null
          },
          "parentId": {
            "type": "integer",
            "nullable": true,
            "default": null
          },
          "masterLanguage": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "languages": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "default": null
          },
          "name": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              },
              "en": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ],
            "nullable": true,
            "default": null
          },
          "teaserTitle": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              },
              "en": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ],
            "nullable": true,
            "default": null
          },
          "teaserText": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              },
              "en": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ],
            "nullable": true,
            "default": null
          },
          "teaserImage": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              },
              "en": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ],
            "nullable": true,
            "default": null
          },
          "friendlyUrl": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              },
              "en": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ],
            "nullable": true,
            "default": null
          },
          "absoluteUrl": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              },
              "en": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ],
            "nullable": true,
            "default": null
          },
          "publishStart": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              },
              "en": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ],
            "nullable": true,
            "default": null
          },
          "tags": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "nullable": true
              },
              "sv": {
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "nullable": true
              },
              "en": {
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ],
            "nullable": true,
            "default": null
          },
          "subjectId": {
            "type": "integer",
            "nullable": true,
            "default": null
          },
          "responsibleMinistries": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "nullable": true,
            "default": null
          },
          "isActive": {
            "type": "boolean",
            "nullable": true,
            "default": null
          },
          "implementationYear": {
            "type": "integer",
            "nullable": true,
            "default": null
          },
          "isReady": {
            "type": "boolean",
            "nullable": true,
            "default": null
          },
          "relatedCommittees": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "nullable": true,
            "default": null
          },
          "searchMetadata": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/SearchResultMetadata"
              }
            ],
            "nullable": true,
            "default": null
          },
          "snippet": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "fullTextSnippet": {
            "type": "string",
            "nullable": true,
            "default": null
          }
        }
      },
      "SnippetResult": {
        "type": "object",
        "properties": {
          "etunimet": {
            "$ref": "#/components/schemas/SnippetResultEntry"
          },
          "sukunimi": {
            "$ref": "#/components/schemas/SnippetResultEntry"
          },
          "kutsumanimi": {
            "$ref": "#/components/schemas/SnippetResultEntry"
          },
          "eduskuntaryhma": {
            "$ref": "#/components/schemas/SnippetResultEntry"
          },
          "vaalipiiri": {
            "$ref": "#/components/schemas/SnippetResultEntry"
          },
          "ammatti": {
            "$ref": "#/components/schemas/SnippetResultEntry"
          },
          "eduskuntatunnus": {
            "$ref": "#/components/schemas/SnippetResultEntry"
          },
          "nimeke": {
            "$ref": "#/components/schemas/SnippetResultEntry"
          },
          "nimeketeksti": {
            "$ref": "#/components/schemas/SnippetResultEntry"
          },
          "puheenvuoro": {
            "$ref": "#/components/schemas/SnippetResultEntry"
          },
          "puhuja": {
            "$ref": "#/components/schemas/SnippetResultEntry"
          },
          "text": {
            "$ref": "#/components/schemas/SnippetResultEntry"
          },
          "snippet": {
            "$ref": "#/components/schemas/SnippetResultEntry"
          },
          "asiasanat": {
            "$ref": "#/components/schemas/SnippetResultEntry"
          }
        }
      },
      "SnippetResultEntry": {
        "type": "object",
        "required": [
          "value",
          "matchLevel"
        ],
        "properties": {
          "value": {
            "type": "string"
          },
          "matchLevel": {
            "type": "string"
          }
        }
      },
      "Sort": {
        "type": "object",
        "required": [
          "property",
          "ascending"
        ],
        "properties": {
          "property": {
            "type": "string"
          },
          "ascending": {
            "type": "boolean"
          }
        },
        "description": "A list of criterions for sorting by properties.\n\nExample:{\n  property: \"kutsumanimi.keyword\", ascending: true\n}"
      },
      "StringEqualsExpression": {
        "type": "object",
        "required": [
          "property",
          "stringValue"
        ],
        "properties": {
          "property": {
            "type": "string"
          },
          "stringValue": {
            "type": "string"
          }
        },
        "description": "A criterion for exact matching to a string property. Usable when the property is indexed as 'keyword', not when indexed as 'text'",
        "example": {
          "property": "kutsumanimi",
          "stringValue": "Petteri"
        }
      },
      "SummaryKansanedustaja": {
        "type": "object",
        "properties": {
          "etunimet": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "sukunimi": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "henkilonro": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "kutsumanimi": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "kotikunta": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "syntymavuosi": {
            "type": "integer",
            "nullable": true,
            "default": null
          },
          "kuolemavuosi": {
            "type": "integer",
            "nullable": true,
            "default": null
          },
          "syntymapaikka": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "ammatti": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              },
              "en": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ],
            "nullable": true,
            "default": null
          },
          "sahkoposti": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "puhelinnumero": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "kansanedustajuusPaattynytPvm": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "edustajantoimenTila": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EdustajantoimenTila"
              }
            ],
            "nullable": true,
            "default": null
          },
          "sukupuolikoodi": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "eduskuntaryhma": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/Eduskuntaryhma"
              }
            ],
            "nullable": true,
            "default": null
          },
          "vaalipiiri": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/Vaalipiiri"
              }
            ],
            "nullable": true,
            "default": null
          }
        }
      },
      "SummaryKansanedustajaList": {
        "type": "object",
        "required": [
          "kansanedustajat"
        ],
        "properties": {
          "kansanedustajat": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SummaryKansanedustaja"
            }
          },
          "searchMetadata": {
            "$ref": "#/components/schemas/SearchMetadata"
          }
        }
      },
      "Tapahtuma": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "ajankohta": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "default": null
          },
          "loppuajankohta": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "default": null
          },
          "otsikko": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              },
              "en": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ],
            "nullable": true,
            "default": null
          },
          "kuvaus": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              },
              "en": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ],
            "nullable": true,
            "default": null
          },
          "kategoria": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              },
              "en": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ],
            "nullable": true,
            "default": null
          },
          "sijainti": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              },
              "en": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ],
            "nullable": true,
            "default": null
          },
          "linkit": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Linkki"
                },
                "nullable": true
              },
              "sv": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Linkki"
                },
                "nullable": true
              },
              "en": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Linkki"
                },
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ],
            "nullable": true,
            "default": null
          },
          "kielet": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "default": null
          }
        }
      },
      "TapahtumaList": {
        "type": "object",
        "required": [
          "tapahtumat"
        ],
        "properties": {
          "tapahtumat": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tapahtuma"
            }
          }
        }
      },
      "Taysistunnonasiakohta": {
        "type": "object",
        "required": [
          "id",
          "taysistunnonEduskuntatunnus",
          "asiakohtanumero"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "taysistunnonEduskuntatunnus": {
            "type": "string"
          },
          "asiakohtanumero": {
            "type": "string"
          }
        }
      },
      "Taysistunto": {
        "type": "object",
        "required": [
          "taysistunnonasiakohdat"
        ],
        "properties": {
          "taysistunnonasiakohdat": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Taysistunnonasiakohta"
            }
          }
        }
      },
      "TermAndIds": {
        "type": "object",
        "required": [
          "term",
          "ids"
        ],
        "properties": {
          "term": {
            "type": "string"
          },
          "ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "description": "Used to search for records having certain values in a certain attribute"
      },
      "TermWithIdsExpression": {
        "type": "object",
        "required": [
          "termWithIds"
        ],
        "properties": {
          "termWithIds": {
            "$ref": "#/components/schemas/TermAndIds"
          }
        },
        "description": "A criterion for matching a property to a specific term, and filtering that term by a list of IDs",
        "example": {
          "termWithIds": {
            "term": "puhuja.henkilonro",
            "ids": [
              "611",
              "911123"
            ]
          }
        }
      },
      "TextMatchExpression": {
        "type": "object",
        "required": [
          "property",
          "match"
        ],
        "properties": {
          "property": {
            "type": "string"
          },
          "match": {
            "type": "string"
          },
          "fuzziness": {
            "type": "number"
          }
        },
        "description": "A criterion for partially matching a string property. Usable when the property is indexed as 'text'",
        "example": {
          "property": "kutsumanimi",
          "match": "Petteri"
        }
      },
      "TextMatchPhraseExpression": {
        "type": "object",
        "required": [
          "property",
          "match_phrase"
        ],
        "properties": {
          "property": {
            "type": "string"
          },
          "match_phrase": {
            "type": "string"
          }
        },
        "description": "A criterion for exactly matching a string property",
        "example": {
          "property": "tunnus",
          "match_phrase": "KOK01"
        }
      },
      "TextMatchPhrasePrefixExpression": {
        "type": "object",
        "required": [
          "property",
          "match_phrase_prefix"
        ],
        "properties": {
          "property": {
            "type": "string"
          },
          "match_phrase_prefix": {
            "type": "string"
          }
        },
        "description": "A criterion for exactly matching a string property where the last term is treated as a prefix",
        "example": {
          "property": "viimeisinEduskuntaryhma.nimi",
          "match_phrase_prefix": "Kansallisen k"
        }
      },
      "TextMultiMatchExpression": {
        "type": "object",
        "required": [
          "properties",
          "multi_match",
          "type"
        ],
        "properties": {
          "properties": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The properties to match against."
          },
          "multi_match": {
            "type": "string",
            "description": "The text to search for in the given properties."
          },
          "type": {
            "type": "string",
            "enum": [
              "best_fields",
              "cross_fields",
              "most_fields",
              "phrase",
              "phrase_prefix"
            ],
            "description": "How the per-property matches are combined into a single score."
          },
          "fuzziness": {
            "type": "number",
            "nullable": true,
            "description": "The maximum edit distance allowed when matching terms, ie. how many character changes a term may differ\nby and still be considered a match. Not supported by the 'cross_fields', 'phrase' and 'phrase_prefix' types."
          },
          "minimum_should_match": {
            "type": "integer",
            "nullable": true,
            "description": "The minimum number of search terms that a document must match. Only applies to the 'best_fields',\n'most_fields' and 'cross_fields' types."
          },
          "prefix_length": {
            "type": "integer",
            "nullable": true,
            "description": "The number of leading characters of a term that are left unchanged when applying fuzziness. Only applies\nwhen 'fuzziness' is used. Defaults to 0.",
            "default": 0
          },
          "slop": {
            "type": "integer",
            "nullable": true,
            "description": "The maximum number of positions the terms may be moved to match the search phrase, ie. how far apart or\nout of order the terms are allowed to be. Only applies to the 'phrase' and 'phrase_prefix' types.\nDefaults to 0, which requires an exact phrase match.",
            "default": 0
          }
        },
        "description": "A criterion for matching a single search term against several string properties at once. Usable when the\nproperties are indexed as 'text'.\n\nThe 'type' property selects how the per-property matches are combined:\n- 'best_fields' -> score comes from the single best matching property\n- 'most_fields' -> scores of all matching properties are combined\n- 'cross_fields' -> the properties are treated as one big field, useful for terms spread over several properties\n- 'phrase' -> the term must match as a phrase\n- 'phrase_prefix' -> like 'phrase', but the last word is treated as a prefix, useful for type-ahead\n\nAdditional examples:\n  { properties: [\"etunimet\", \"sukunimi\"], multi_match: \"Petteri Orpo\", type: \"cross_fields\", minimum_should_match: 2 }\n  { properties: [\"nimeke\", \"fullText\"], multi_match: \"kansalaisaloite eläkkeistä\", type: \"most_fields\", fuzziness: 1 }\n  { properties: [\"nimeke\", \"fullText\"], multi_match: \"hallituksen esitys\", type: \"phrase\", slop: 1 }\n",
        "example": {
          "properties": [
            "nimeke",
            "fullText"
          ],
          "multi_match": "ilmastolaki",
          "type": "best_fields",
          "fuzziness": 1
        }
      },
      "Tiedosto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "contentId": {
            "type": "integer",
            "nullable": true,
            "default": null
          },
          "contentTypeId": {
            "type": "integer",
            "nullable": true,
            "default": null
          },
          "contentType": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "ancestorIds": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "nullable": true,
            "default": null
          },
          "parentId": {
            "type": "integer",
            "nullable": true,
            "default": null
          },
          "language": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "name": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "title": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "friendlyUrl": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "absoluteUrl": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "extension": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "publishStart": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "default": null
          },
          "publishTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "default": null
          },
          "filePublisherId": {
            "type": "integer",
            "nullable": true,
            "default": null
          },
          "pageCount": {
            "type": "integer",
            "nullable": true,
            "default": null
          },
          "eduskuntaId": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "alternativeEduskuntaId": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "fullText": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "fullTextSnippet": {
            "type": "string",
            "nullable": true,
            "default": null
          }
        }
      },
      "TimeRange": {
        "type": "object",
        "required": [
          "key",
          "from",
          "to"
        ],
        "properties": {
          "key": {
            "type": "string"
          },
          "from": {
            "type": "string",
            "nullable": true
          },
          "to": {
            "type": "string",
            "nullable": true
          }
        },
        "description": "Time range definition for aggregations"
      },
      "TimeRangeAggregation": {
        "type": "object",
        "required": [
          "ranges"
        ],
        "properties": {
          "path": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "filter": {
            "$ref": "#/components/schemas/ExpressionType"
          },
          "ranges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeRange"
            }
          }
        },
        "description": "    Aggregation request definition.\n\n    terms: List of time ranges to aggregate on.\n    path: Optional nested path.\n\n    Examples:\n      #{ range: #{ path: \"laadintapvm\", ranges: #[{from: \"2011-01-13\", to: \"2021-01-13\"}] }}"
      },
      "ToimenKeskeytys": {
        "type": "object",
        "required": [
          "alkupvm",
          "loppupvm",
          "selite",
          "tilallaHenkilo"
        ],
        "properties": {
          "alkupvm": {
            "type": "string",
            "nullable": true
          },
          "loppupvm": {
            "type": "string",
            "nullable": true
          },
          "selite": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              },
              "en": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ]
          },
          "tilallaHenkilo": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              },
              "en": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv",
              "en"
            ]
          }
        }
      },
      "ToimenpideToimija": {
        "type": "object",
        "required": [
          "henkilo",
          "rooli",
          "yhteiso"
        ],
        "properties": {
          "henkilo": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/ToimenpideToimijaHenkilo"
              }
            ],
            "nullable": true
          },
          "rooli": {
            "type": "string",
            "nullable": true
          },
          "yhteiso": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ToimenpideToimijaHenkilo": {
        "type": "object",
        "required": [
          "etunimi",
          "sukunimi",
          "asema",
          "eduskuntaryhma"
        ],
        "properties": {
          "etunimi": {
            "type": "string",
            "nullable": true
          },
          "sukunimi": {
            "type": "string",
            "nullable": true
          },
          "henkilonro": {
            "type": "string",
            "nullable": true
          },
          "asema": {
            "type": "string",
            "nullable": true
          },
          "eduskuntaryhma": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "Toimielin": {
        "type": "object",
        "required": [
          "nimi",
          "rooli",
          "alkupvm",
          "loppupvm"
        ],
        "properties": {
          "nimi": {
            "type": "string",
            "nullable": true
          },
          "rooli": {
            "type": "string"
          },
          "alkupvm": {
            "type": "string"
          },
          "loppupvm": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ToimijaLaatija": {
        "type": "object",
        "required": [
          "henkilo",
          "yhteiso"
        ],
        "properties": {
          "henkilo": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/AsiakirjaHenkilo"
              }
            ],
            "nullable": true
          },
          "yhteiso": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "Tyo": {
        "type": "object",
        "required": [
          "tyopaikka",
          "aikajakso"
        ],
        "properties": {
          "tyopaikka": {
            "type": "string"
          },
          "aikajakso": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "UniqueByAggregation": {
        "type": "object",
        "required": [
          "terms"
        ],
        "properties": {
          "path": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "toParent": {
            "type": "boolean"
          },
          "filter": {
            "$ref": "#/components/schemas/ExpressionType"
          },
          "terms": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "termsIds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TermAndIds"
            }
          }
        },
        "description": "    Aggregation request definition.\n\n    terms: List of field names to aggregate on.\n    path: Optional nested path.\n\n    Examples:\n      #{ unique: #{ path: \"asiasanat\", terms: #[\"aiheteksti\"] }}\n      #{ unique: #{ terms: #[\"asiakirjatyyppinimi\"] } }"
      },
      "Vaalipiiri": {
        "type": "object",
        "required": [
          "nimi",
          "tunnus",
          "alkupvm",
          "loppupvm"
        ],
        "properties": {
          "nimi": {
            "$ref": "#/components/schemas/Nimi"
          },
          "tunnus": {
            "type": "string"
          },
          "alkupvm": {
            "type": "string"
          },
          "loppupvm": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "Valiokunta": {
        "type": "object",
        "required": [
          "nimi",
          "tunnus",
          "jaosto"
        ],
        "properties": {
          "nimi": {
            "type": "string",
            "nullable": true
          },
          "tunnus": {
            "type": "string",
            "nullable": true
          },
          "jaosto": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/Jaosto"
              }
            ],
            "nullable": true
          }
        }
      },
      "Valiokuntajasenyys": {
        "type": "object",
        "required": [
          "rooli",
          "valiokuntaTunnus",
          "valiokuntaNimi",
          "alkupvm",
          "loppupvm"
        ],
        "properties": {
          "rooli": {
            "$ref": "#/components/schemas/Nimi"
          },
          "valiokuntaTunnus": {
            "type": "string"
          },
          "valiokuntaNimi": {
            "$ref": "#/components/schemas/Nimi"
          },
          "alkupvm": {
            "type": "string",
            "nullable": true
          },
          "loppupvm": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ValtioneuvostonJasenyys": {
        "type": "object",
        "required": [
          "alkupvm",
          "loppupvm",
          "hallitus",
          "nimi",
          "ministeriys"
        ],
        "properties": {
          "alkupvm": {
            "type": "string"
          },
          "loppupvm": {
            "type": "string",
            "nullable": true
          },
          "hallitus": {
            "type": "string"
          },
          "nimi": {
            "type": "string",
            "nullable": true
          },
          "ministeriys": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "Valtiopaivaasia": {
        "type": "object",
        "properties": {
          "tila": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "nimeke": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "laadintapvm": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "paattymispvm": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true,
                "default": null
              },
              "sv": {
                "type": "string",
                "nullable": true,
                "default": null
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "momenttiotsikko": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true,
                "default": null
              },
              "sv": {
                "type": "string",
                "nullable": true,
                "default": null
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "vaalikausitunnus": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true,
                "default": null
              },
              "sv": {
                "type": "string",
                "nullable": true,
                "default": null
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "valtiopaivavuosi": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true,
                "default": null
              },
              "sv": {
                "type": "string",
                "nullable": true,
                "default": null
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "tehtavaluokka": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "eduskuntatunnus": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string"
              },
              "sv": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "kokonaispaatosnimi": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "asiakirjatyyppinimi": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "viimeisinJulkaisuajankohta": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true,
                "default": null
              },
              "sv": {
                "type": "string",
                "nullable": true,
                "default": null
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "muidenAllekirjoittajienLkm": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "integer",
                "nullable": true,
                "default": null
              },
              "sv": {
                "type": "integer",
                "nullable": true,
                "default": null
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "ensimmainenAllekirjoittaja": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/EnsimmainenAllekirjoittajaItem"
                },
                "default": []
              },
              "sv": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/EnsimmainenAllekirjoittajaItem"
                },
                "default": []
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "asiakirjatyyppikoodi": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "viimeisinKasittelyvaihe": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "asiasanat": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Aihe"
                }
              },
              "sv": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Aihe"
                }
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "ehdotukset": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Ehdotus"
                }
              },
              "sv": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Ehdotus"
                }
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "keskeisetAsiakirjat": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/KeskeinenAsiakirja"
                }
              },
              "sv": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/KeskeinenAsiakirja"
                }
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "viittaavatAsiat": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Viittaus"
                }
              },
              "sv": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Viittaus"
                }
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "yhdistetytAsiat": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Viittaus"
                }
              },
              "sv": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Viittaus"
                }
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "euViittaukset": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/EuViittaus"
                }
              },
              "sv": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/EuViittaus"
                }
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "multiviitteet": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Multiviite"
                }
              },
              "sv": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Multiviite"
                }
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "kasittelyt": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Kasittely"
                }
              },
              "sv": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Kasittely"
                }
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "valiokuntienViimeisimmatKasittelyt": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Kasittely"
                },
                "default": []
              },
              "sv": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Kasittely"
                },
                "default": []
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "kasittelynAsiakirjat": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/KasittelynAsiakirja"
                  }
                }
              },
              "sv": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/KasittelynAsiakirja"
                  }
                }
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "asiantuntijalausunnot": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AsiantuntijaLausunto"
                }
              },
              "sv": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AsiantuntijaLausunto"
                }
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          },
          "jarjestysnumero": {
            "type": "integer",
            "nullable": true
          },
          "lisaJarjestysnumero": {
            "type": "integer",
            "nullable": true
          },
          "historiallinen": {
            "type": "boolean",
            "nullable": true,
            "default": null
          },
          "antaja": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "fi",
              "sv"
            ],
            "nullable": true,
            "default": null
          }
        }
      },
      "ValtiopaivaasiaLangFieldBaseName": {
        "type": "string",
        "enum": [
          "tila",
          "nimeke",
          "laadintapvm",
          "viimeisinJulkaisuajankohta",
          "paattymispvm",
          "momenttiotsikko",
          "vaalikausitunnus",
          "valtiopaivavuosi",
          "tehtavaluokka",
          "eduskuntatunnus",
          "kokonaispaatosnimi",
          "asiakirjatyyppinimi",
          "viimeksiPaivittynyt",
          "asiakirjatyyppikoodi",
          "viimeisinKasittelyvaihe",
          "antaja"
        ]
      },
      "ValtiopaivaasiaLangSplitNestedRoot": {
        "type": "string",
        "enum": [
          "asiasanat",
          "ehdotukset",
          "keskeisetAsiakirjat",
          "viittaavatAsiat",
          "yhdistetytAsiat",
          "euViittaukset",
          "multiviitteet",
          "kasittelyt",
          "kasittelynAsiakirjat"
        ]
      },
      "Viittaus": {
        "type": "object",
        "required": [
          "eduskuntatunnus",
          "otsikkoteksti",
          "asiaJarjestys"
        ],
        "properties": {
          "eduskuntatunnus": {
            "type": "string",
            "nullable": true
          },
          "otsikkoteksti": {
            "type": "string",
            "nullable": true
          },
          "asiaJarjestys": {
            "type": "integer"
          }
        }
      },
      "WithinObjectExpression": {
        "type": "object",
        "required": [
          "property",
          "with"
        ],
        "properties": {
          "property": {
            "type": "string"
          },
          "with": {
            "$ref": "#/components/schemas/ExpressionType"
          }
        },
        "description": "Use this criterion to scope an inner expression into a nested object.\n\nExample:\n  \"property\": \"sidonnaisuudet\",\n  \"with\": {\n      \"and\": [\n          {\n              \"property\": \"ryhmaotsikko\",\n              \"match\": \"Lahjailmoitus\"\n          },\n          {\n              \"property\": \"sidonta\",\n              \"match\": \"VIP\"\n          }\n      ]\n  }\n"
      },
      "Yhteystieto": {
        "type": "object",
        "required": [
          "sahkoposti"
        ],
        "properties": {
          "id": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "henkilonro": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "kutsumanimi": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "sukunimi": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "puhelin": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "matkapuhelin": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "sahkoposti": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              },
              "en": {
                "type": "string",
                "nullable": true
              }
            },
            "nullable": true,
            "default": null
          },
          "tehtava": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              },
              "en": {
                "type": "string",
                "nullable": true
              }
            },
            "nullable": true,
            "default": null
          },
          "osasto": {
            "type": "object",
            "properties": {
              "fi": {
                "type": "string",
                "nullable": true
              },
              "sv": {
                "type": "string",
                "nullable": true
              },
              "en": {
                "type": "string",
                "nullable": true
              }
            },
            "nullable": true,
            "default": null
          },
          "eduskuntaryhmatunnus": {
            "type": "string",
            "nullable": true,
            "default": null
          },
          "avustettavat": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Avustettava"
            },
            "nullable": true,
            "default": null
          }
        }
      }
    }
  }
}
