{
  "title": "ltaer",
  "type": "object",
  "properties": {
    "workload": {
      "type": "array",
      "items": {
        "type": "number"
      },
      "minItems": 5,
      "maxItems": 20,
      "uniqueItems": true
    },
    "lactate": {
      "type": "array",
      "items": {
        "type": "number"
      },
      "minItems": 5,
      "maxItems": 20
    },
    "func": {
      "type": "string",
      "enum": [
        "exp",
        "poly3",
        "poly4",
        "robust_poly3",
        "robust_poly4",
        "ppoly",
        "smooth_ppoly"
      ]
    },
    "method": {
      "type": "string",
      "enum": [
        "rest",
        "min",
        "estmin",
        "delta",
        "mle",
        "loglog",
        "loglog2",
        "infl",
        "convincr"
      ]
    }
  },
  "required": [
    "workload",
    "lactate",
    "func",
    "method"
  ],
  "allOf": [
    {
      "if": {
        "properties": {
          "method": {
            "enum": [
              "rest"
            ]
          }
        }
      },
      "then": {
        "properties": {
          "rest_lactate": {
            "type": "number"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "method": {
            "enum": [
              "rest"
            ]
          }
        }
      },
      "then": {
        "required": [
          "rest_lactate"
        ]
      }
    }
  ]
}