{
  "$defs": {
    "CalibratedParameter": {
      "additionalProperties": false,
      "properties": {
        "high": {
          "title": "High",
          "type": "number"
        },
        "interval_high": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Interval High"
        },
        "interval_low": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Interval Low"
        },
        "low": {
          "title": "Low",
          "type": "number"
        },
        "name": {
          "title": "Name",
          "type": "string"
        },
        "note": {
          "default": "",
          "title": "Note",
          "type": "string"
        },
        "start": {
          "title": "Start",
          "type": "number"
        },
        "stderr": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Stderr"
        },
        "value": {
          "title": "Value",
          "type": "number"
        }
      },
      "required": [
        "name",
        "low",
        "high",
        "start",
        "value"
      ],
      "title": "CalibratedParameter",
      "type": "object"
    },
    "ColumnFit": {
      "additionalProperties": false,
      "properties": {
        "column": {
          "title": "Column",
          "type": "string"
        },
        "readings": {
          "title": "Readings",
          "type": "integer"
        },
        "rmse_after": {
          "title": "Rmse After",
          "type": "number"
        },
        "rmse_before": {
          "title": "Rmse Before",
          "type": "number"
        },
        "unit": {
          "title": "Unit",
          "type": "string"
        }
      },
      "required": [
        "column",
        "unit",
        "readings",
        "rmse_before",
        "rmse_after"
      ],
      "title": "ColumnFit",
      "type": "object"
    },
    "Notice": {
      "additionalProperties": false,
      "properties": {
        "message": {
          "title": "Message",
          "type": "string"
        },
        "reason": {
          "title": "Reason",
          "type": "string"
        }
      },
      "required": [
        "reason",
        "message"
      ],
      "title": "Notice",
      "type": "object"
    }
  },
  "$id": "mokili.calibration/1",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "Parameter values fitted to a measurement, with their uncertainty. Written\nby Mokili; it proposes a calibrated scenario and changes nothing itself.",
  "properties": {
    "assumptions": {
      "items": {
        "type": "string"
      },
      "title": "Assumptions",
      "type": "array"
    },
    "confidence": {
      "title": "Confidence",
      "type": "number"
    },
    "created_at": {
      "title": "Created At",
      "type": "string"
    },
    "evaluations": {
      "title": "Evaluations",
      "type": "integer"
    },
    "fit": {
      "items": {
        "$ref": "#/$defs/ColumnFit"
      },
      "title": "Fit",
      "type": "array"
    },
    "measurement": {
      "pattern": "^sha256:[0-9a-f]{64}$",
      "title": "Measurement",
      "type": "string"
    },
    "method": {
      "title": "Method",
      "type": "string"
    },
    "parameters": {
      "items": {
        "$ref": "#/$defs/CalibratedParameter"
      },
      "title": "Parameters",
      "type": "array"
    },
    "proposal": {
      "pattern": "^sha256:[0-9a-f]{64}$",
      "title": "Proposal",
      "type": "string"
    },
    "scenario": {
      "pattern": "^sha256:[0-9a-f]{64}$",
      "title": "Scenario",
      "type": "string"
    },
    "schema": {
      "const": "mokili.calibration/1",
      "title": "Schema",
      "type": "string"
    },
    "warnings": {
      "default": [],
      "items": {
        "$ref": "#/$defs/Notice"
      },
      "title": "Warnings",
      "type": "array"
    }
  },
  "required": [
    "schema",
    "created_at",
    "scenario",
    "measurement",
    "parameters",
    "fit",
    "evaluations",
    "method",
    "confidence",
    "assumptions",
    "proposal"
  ],
  "title": "Calibration",
  "type": "object"
}
