{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/genomsyn-se/json-schema/genomsyn-se-koncernrelationslista-schema.json",
  "title": "Koncernrelationslista",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/genomsyn-se-openapi.json#/components/schemas/Koncernrelationslista",
  "properties": {
    "antal": {
      "type": "integer"
    },
    "lasanvisning": {
      "type": "string"
    },
    "orgnr": {
      "type": "string"
    },
    "relationer": {
      "items": {
        "$ref": "#/$defs/Koncernrelation"
      },
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "Koncernrelation": {
      "properties": {
        "agarandel": {
          "description": "Rapporterad kapitalandel som kvot 0–1.",
          "type": [
            "number",
            "null"
          ]
        },
        "arsredovisning_id": {
          "type": "string"
        },
        "identifierat_orgnr": {
          "description": "Säker identifiering från rapporterat nummer eller entydigt namn; null vid okänd eller tvetydig motpart.",
          "type": [
            "string",
            "null"
          ]
        },
        "identifieringsmetod": {
          "enum": [
            "rapporterat_orgnr",
            "aktuellt_namn",
            "historiskt_rapportnamn",
            null
          ],
          "type": [
            "string",
            "null"
          ]
        },
        "kalla": {
          "properties": {
            "element": {
              "type": [
                "string",
                "null"
              ]
            },
            "tupel": {
              "type": [
                "string",
                "null"
              ]
            },
            "typ": {
              "type": "string"
            },
            "utdrag": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "matchad_namnform": {
          "description": "Den aktuella eller historiska namnform som gav en entydig träff.",
          "type": [
            "string",
            "null"
          ]
        },
        "matchningsperiod": {
          "format": "date",
          "type": [
            "string",
            "null"
          ]
        },
        "motpart_land": {
          "description": "Land som står i källrapporten.",
          "type": [
            "string",
            "null"
          ]
        },
        "motpart_lank": {
          "format": "uri",
          "type": [
            "string",
            "null"
          ]
        },
        "motpart_namn": {
          "description": "Namnet som står i källrapporten.",
          "type": [
            "string",
            "null"
          ]
        },
        "motpart_sate": {
          "description": "Säte som står i källrapporten.",
          "type": [
            "string",
            "null"
          ]
        },
        "period_slut": {
          "description": "Rapportperiodens slut; inte ett påstående om dagens ägande.",
          "format": "date",
          "type": [
            "string",
            "null"
          ]
        },
        "period_start": {
          "format": "date",
          "type": [
            "string",
            "null"
          ]
        },
        "rapporterad_utlandsk_identitet": {
          "description": "Utländsk identifierare som står i källrapporten.",
          "type": [
            "string",
            "null"
          ]
        },
        "rapporterat_orgnr": {
          "description": "Organisationsnumret som står i källrapporten, utan omskrivning.",
          "type": [
            "string",
            "null"
          ]
        },
        "relationstyp": {
          "enum": [
            "moderforetag",
            "moderforetag_narmaste",
            "moderforetag_yttersta",
            "dotterforetag_direkt",
            "dotterforetag_indirekt"
          ],
          "type": "string"
        },
        "rostandel": {
          "description": "Rapporterad röstandel som kvot 0–1.",
          "type": [
            "number",
            "null"
          ]
        }
      },
      "type": "object"
    }
  }
}