{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/components/schemas/PkgMrSettingsVM",
  "components": {
    "schemas": {
      "PkgMrSettingsVM": {
        "type": "object",
        "properties": {
          "applicationKey": {
            "type": "string",
            "nullable": true
          },
          "setting": {
            "oneOf": [
              {
                "required": [
                  "key"
                ],
                "type": "object",
                "properties": {
                  "key": {
                    "minLength": 1,
                    "enum": [
                      "hide_comment_section",
                      "read_only_hierarchy",
                      "object_not_creatable",
                      "snapshot_enabled",
                      "word_export_enabled",
                      "excel_export_enabled",
                      "pdf_export_enabled",
                      "excel_import_enabled",
                      "versioning_on_sort_order_enabled",
                      "change_analysis_enabled",
                      "disable_change_of_numbering",
                      "disable_sort_objects",
                      "has_token_keywords",
                      "has_token_texts",
                      "check_exact_match",
                      "exact_match_spaces",
                      "disable_duplicate_validation_for_spaceapp",
                      "force_confirmation_after_object_move",
                      "copy_paste_as_plaintext_like",
                      "word_diff_use_highlight",
                      "enable_export_all_versions_between_two_dates",
                      "is_export_control",
                      "object_workflow_space_admin_as_regular_user",
                      "move_object_based_on_role",
                      "export_use_space_app_object_type_check",
                      "is_application_data_lineage",
                      "is_application_data_dictionary",
                      "is_application_code_tables",
                      "is_application_dawiso_objects",
                      "is_application_pdm_app",
                      "media_gray_background",
                      "no_background_color_app_badge",
                      "is_mip_secured_application",
                      "is_data_product_application"
                    ],
                    "type": "string",
                    "readOnly": true
                  },
                  "value": {
                    "type": "boolean",
                    "nullable": true
                  }
                }
              },
              {
                "required": [
                  "key"
                ],
                "type": "object",
                "properties": {
                  "key": {
                    "minLength": 1,
                    "enum": [
                      "order_number"
                    ],
                    "type": "string",
                    "readOnly": true
                  },
                  "value": {
                    "type": "integer",
                    "nullable": true
                  }
                }
              },
              {
                "required": [
                  "key"
                ],
                "type": "object",
                "properties": {
                  "key": {
                    "minLength": 1,
                    "enum": [
                      "object_ladder_numbering_pattern",
                      "changed_text_color",
                      "deleted_text_color",
                      "color",
                      "one_global_font"
                    ],
                    "type": "string",
                    "readOnly": true
                  },
                  "value": {
                    "type": "string",
                    "nullable": true
                  }
                }
              },
              {
                "required": [
                  "key"
                ],
                "type": "object",
                "properties": {
                  "key": {
                    "minLength": 1,
                    "enum": [
                      "excel_import_settings"
                    ],
                    "type": "string",
                    "readOnly": true
                  },
                  "value": {
                    "$ref": "#/components/schemas/ImportSettingsBase"
                  }
                }
              },
              {
                "required": [
                  "key"
                ],
                "type": "object",
                "properties": {
                  "key": {
                    "minLength": 1,
                    "enum": [
                      "excel_export_settings"
                    ],
                    "type": "string",
                    "readOnly": true
                  },
                  "value": {
                    "$ref": "#/components/schemas/ExportSettingsBase"
                  }
                }
              },
              {
                "required": [
                  "key"
                ],
                "type": "object",
                "properties": {
                  "key": {
                    "minLength": 1,
                    "enum": [
                      "external_loads"
                    ],
                    "type": "string",
                    "readOnly": true
                  },
                  "value": {
                    "$ref": "#/components/schemas/ExternalLoadsSettingsBase"
                  }
                }
              },
              {
                "required": [
                  "key"
                ],
                "type": "object",
                "properties": {
                  "key": {
                    "minLength": 1,
                    "enum": [
                      "concept_table_template"
                    ],
                    "type": "string",
                    "readOnly": true
                  },
                  "value": {
                    "$ref": "#/components/schemas/ConceptTableDatabaseTemplate"
                  }
                }
              },
              {
                "required": [
                  "key"
                ],
                "type": "object",
                "properties": {
                  "key": {
                    "minLength": 1,
                    "enum": [
                      "lineage_parsing_options"
                    ],
                    "type": "string",
                    "readOnly": true
                  },
                  "value": {
                    "$ref": "#/components/schemas/LineageParsingOptions"
                  }
                }
              },
              {
                "required": [
                  "key"
                ],
                "type": "object",
                "properties": {
                  "key": {
                    "minLength": 1,
                    "enum": [
                      "token_keyword_spaces",
                      "token_keyword_apps"
                    ],
                    "type": "string",
                    "readOnly": true
                  },
                  "value": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "nullable": true
                  }
                }
              }
            ]
          },
          "spacePath": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LineageParsingOptions": {
        "type": "object",
        "properties": {
          "attributeTypeMapping": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AttributeTypeMap"
            },
            "nullable": true
          },
          "droppedCapPct": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "fullThreshold": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "incremental": {
            "type": "boolean",
            "nullable": true
          },
          "maxIncrementalDays": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "minProcedureBodyLen": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "model": {
            "type": "string",
            "nullable": true
          },
          "objectTypeMapping": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ObjectTypeMap"
            },
            "nullable": true
          },
          "prescanMacrosDepth": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "qualityAcceptedAcceptThreshold": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "qualityAcceptedRejectThreshold": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "qualityDroppedAcceptThreshold": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "qualityDroppedRejectThreshold": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ObjectTypeMap": {
        "type": "object",
        "properties": {
          "objectType": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AttributeTypeMap": {
        "type": "object",
        "properties": {
          "attributeType": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExternalLoadsSettingsBase": {
        "required": [
          "enableChangeLogAndVersioning"
        ],
        "type": "object",
        "properties": {
          "enableChangeLogAndVersioning": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ExportSettingsBase": {
        "required": [
          "filterApplicationsEnabled",
          "filterSpacesEnabled",
          "joinNumberingAndObjectName",
          "truncateLongCellValueEnabled"
        ],
        "type": "object",
        "properties": {
          "allowedCodeListTypes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "allowedHierarchyTypes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "allowedImportModes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "dateFormat": {
            "type": "string",
            "nullable": true
          },
          "defaultCodeListType": {
            "type": "string",
            "nullable": true
          },
          "defaultHierarchyType": {
            "type": "string",
            "nullable": true
          },
          "defaultImportMode": {
            "type": "string",
            "nullable": true
          },
          "defaultWorkflowState": {
            "type": "string",
            "nullable": true
          },
          "filterApplicationsEnabled": {
            "type": "boolean"
          },
          "filterSpacesEnabled": {
            "type": "boolean"
          },
          "hiddenCodeListSheets": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "hiddenObjectSheetColumns": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "hiddenRelationsSheetColumns": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "joinNumberingAndObjectName": {
            "type": "boolean"
          },
          "truncateLongCellValueEnabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ImportSettingsBase": {
        "type": "object",
        "properties": {
          "allowCrossSpaceAppImport": {
            "type": "boolean",
            "nullable": true
          },
          "allowedImportModes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "dateFormat": {
            "type": "string",
            "nullable": true
          },
          "fullReloadDeletionMode": {
            "type": "string",
            "nullable": true
          },
          "minimalRightsLevel": {
            "type": "string",
            "nullable": true
          },
          "multiAppsImportEnabled": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  }
}