{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stat-fi/json-schema/stat-fi-correspondence-table-min-schema.json",
  "title": "CorrespondenceTableMin",
  "description": "CorrespondenceTableMin",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stat-fi-classifications-openapi.yml#/components/schemas/CorrespondenceTableMin",
  "type": "object",
  "properties": {
    "source": {
      "$ref": "#/$defs/ClassificationForCorrespondence"
    },
    "target": {
      "$ref": "#/$defs/ClassificationForCorrespondence"
    },
    "localId": {
      "maxLength": 220,
      "type": [
        "string",
        "null"
      ],
      "description": "Local id of correspondence table"
    },
    "sourceClassification": {
      "maxLength": 100,
      "type": [
        "string",
        "null"
      ],
      "description": "Local id of source classification"
    },
    "targetClassification": {
      "maxLength": 100,
      "type": [
        "string",
        "null"
      ],
      "description": "Local id of target classification"
    },
    "correspondenceTableTexts": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/CorrespondenceTableText"
      },
      "description": "Correspondence table texts"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "ClassificationDescription": {
      "type": "object",
      "properties": {
        "langName": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": "Language name"
        },
        "lang": {
          "maxLength": 3,
          "type": [
            "string",
            "null"
          ],
          "description": "Language code"
        },
        "description": {
          "maxLength": 300,
          "type": [
            "string",
            "null"
          ],
          "description": "Classification description"
        }
      },
      "additionalProperties": false,
      "description": "ClassificationDescription"
    },
    "ClassificationForCorrespondence": {
      "type": "object",
      "properties": {
        "classificationSerie": {
          "$ref": "#/$defs/ClassificationSerie"
        },
        "localId": {
          "maxLength": 100,
          "type": [
            "string",
            "null"
          ],
          "description": "Local id of classification"
        },
        "internationalRecommendation": {
          "type": "boolean",
          "description": "Is international recommendation"
        },
        "nationalRecommendation": {
          "type": "boolean",
          "description": "Is national recommendation"
        },
        "classificationName": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ClassificationName"
          },
          "description": "Classification name"
        },
        "classificationDescription": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ClassificationDescription"
          },
          "description": "Classification description"
        }
      },
      "additionalProperties": false,
      "description": "ClassificationForCorrespondence is the classification for CorrespondenceTable"
    },
    "ClassificationName": {
      "type": "object",
      "properties": {
        "langName": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": "Language name"
        },
        "lang": {
          "maxLength": 3,
          "type": [
            "string",
            "null"
          ],
          "description": "Language code"
        },
        "name": {
          "maxLength": 300,
          "type": [
            "string",
            "null"
          ],
          "description": "Name"
        }
      },
      "additionalProperties": false,
      "description": "ClassificationName"
    },
    "ClassificationSerie": {
      "type": "object",
      "properties": {
        "localId": {
          "maxLength": 100,
          "type": [
            "string",
            "null"
          ],
          "description": "Classfication serie local Id"
        },
        "classificationSerieName": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ClassificationSerieName"
          },
          "description": "Classification serie name"
        },
        "classificationSerieDescription": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ClassificationSerieDescription"
          },
          "description": "Classification serie description"
        }
      },
      "additionalProperties": false,
      "description": "ClassificationSerie contains small info about classification serie"
    },
    "ClassificationSerieDescription": {
      "type": "object",
      "properties": {
        "langName": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": "Language name"
        },
        "lang": {
          "maxLength": 3,
          "type": [
            "string",
            "null"
          ],
          "description": "Language code"
        },
        "description": {
          "maxLength": 300,
          "type": [
            "string",
            "null"
          ],
          "description": "Description of classification serie"
        }
      },
      "additionalProperties": false,
      "description": "ClassificationSerieDescription contains description of classification serie"
    },
    "ClassificationSerieName": {
      "type": "object",
      "properties": {
        "langName": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": "Language name"
        },
        "lang": {
          "maxLength": 3,
          "type": [
            "string",
            "null"
          ],
          "description": "Language code"
        },
        "name": {
          "maxLength": 100,
          "type": [
            "string",
            "null"
          ],
          "description": "Name"
        }
      },
      "additionalProperties": false,
      "description": "ClassificationSerieName"
    },
    "CorrespondenceTableText": {
      "type": "object",
      "properties": {
        "langName": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": "Language name"
        },
        "lang": {
          "maxLength": 3,
          "type": [
            "string",
            "null"
          ],
          "description": "Language code"
        },
        "description": {
          "maxLength": 300,
          "type": [
            "string",
            "null"
          ],
          "description": "Description"
        },
        "updates": {
          "maxLength": 300,
          "type": [
            "string",
            "null"
          ],
          "description": "Updates"
        }
      },
      "additionalProperties": false,
      "description": "CorrespondenceTableText"
    }
  }
}