{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Non-accredited detached synthetic compliance model",
  "type": "object",
  "properties": {
    "schema": {
      "const": "bts.detached-dry-compliance.v1"
    },
    "deviceId": {
      "const": "06-12"
    },
    "archiveId": {
      "const": "macro-two-blocks-0612"
    },
    "modelVersion": {
      "const": "toy-linear-series-1"
    },
    "revision": {
      "type": "integer",
      "minimum": 1
    },
    "parentObservationRevision": {
      "type": "integer",
      "minimum": 0
    },
    "poseId": {
      "enum": [
        "home",
        "touch",
        "mid",
        "full"
      ]
    },
    "travelMm": {
      "type": "number",
      "minimum": 0,
      "maximum": 16
    },
    "forceN": {
      "type": "number"
    },
    "boundedClosureMm": {
      "type": "number"
    },
    "remainingGapMm": {
      "type": "number"
    },
    "deformationEachMm": {
      "type": "array",
      "items": {
        "type": "number"
      },
      "minItems": 2,
      "maxItems": 2
    },
    "geometryLengthsMm": {
      "type": "array",
      "items": {
        "type": "number"
      },
      "minItems": 2,
      "maxItems": 2
    },
    "effectiveStiffnessNPerMm": {
      "const": 1.5
    },
    "contact": {
      "type": "boolean"
    },
    "constants": {
      "const": {
        "gapMm": 4,
        "kANPerMm": 2,
        "kBNPerMm": 6,
        "unstressedLengthMm": 32,
        "rangeMm": [
          0,
          16
        ]
      }
    },
    "trace": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "travelMm": {
            "type": "number",
            "minimum": 0,
            "maximum": 16
          },
          "forceN": {
            "type": "number"
          },
          "boundedClosureMm": {
            "type": "number"
          },
          "remainingGapMm": {
            "type": "number"
          },
          "deformationEachMm": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2
          },
          "geometryLengthsMm": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2
          },
          "effectiveStiffnessNPerMm": {
            "const": 1.5
          },
          "contact": {
            "type": "boolean"
          }
        },
        "required": [
          "travelMm",
          "forceN",
          "boundedClosureMm",
          "remainingGapMm",
          "deformationEachMm",
          "geometryLengthsMm",
          "effectiveStiffnessNPerMm",
          "contact"
        ],
        "additionalProperties": false
      },
      "minItems": 17,
      "maxItems": 17
    },
    "actualInstrumentUse": {
      "const": false
    },
    "accreditedMeasurement": {
      "const": false
    },
    "provenance": {
      "type": "string"
    }
  },
  "required": [
    "schema",
    "deviceId",
    "archiveId",
    "modelVersion",
    "revision",
    "parentObservationRevision",
    "poseId",
    "travelMm",
    "forceN",
    "boundedClosureMm",
    "remainingGapMm",
    "deformationEachMm",
    "geometryLengthsMm",
    "effectiveStiffnessNPerMm",
    "contact",
    "constants",
    "trace",
    "actualInstrumentUse",
    "accreditedMeasurement",
    "provenance"
  ],
  "additionalProperties": false
}
