{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.imatest.com/schema/25-1/common-settings-save-location",
  "title": "Save Location",
  "description": "User-provided settings for where to save results.",
  "type": "object",
  "properties": {
    "save_in_image_subfolder": {
      "description": "User-provided setting if the result(s) should be saved in the same folder as the image.",
      "type": "boolean"
    },
    "sub_folder": {
      "description": "The user-provided sub-folder of the image folder to save the result(s) in.",
      "type": "string"
    },
    "custom_save_folder": {
      "description": "The user-provided folder to save the result(s) in.",
      "type": "string"
    },
    "use_image_name_as_root": {
      "description": "The user-provided option to use the image name as the root of the result file(s). This is only in results when `save_in_image_subfolder` is `false`.",
      "type": "boolean"
    },
    "custom_root_name": {
      "description": "The user-provided custom root name for the result file(s).",
      "type": "string"
    },
    "open_save_folder": {
      "description": "The user-provided option for opening the result folder at the end of an analysis run.",
      "type": "boolean"
    }
  },
  "required": [
    "save_in_image_subfolder",
    "use_image_name_as_root",
    "open_save_folder"
  ],
  "unevaluatedProperties": false
}