{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "model.json described a light model",
  "properties": {
    "fixed_config": {
      "description": "Configuration for fixed calculation mode",
      "properties": {
        "watt": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "linear_config": {
      "description": "Configuration for linear calculation mode",
      "properties": {
        "max_watt": {
          "type": "number"
        },
        "min_watt": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "measure_description": {
      "description": "Add more information about how you measured the light or any remarks",
      "type": "string"
    },
    "measure_device": {
      "description": "Device which was used to measure",
      "type": "string"
    },
    "measure_method": {
      "description": "How the light was measured",
      "enum": [
        "manual",
        "script"
      ],
      "type": "string"
    },
    "name": {
      "description": "The full name",
      "type": "string"
    },
    "standby_usage": {
      "description": "Power draw when the light is turned of. When you are not able to measure set to 0.4",
      "type": "number"
    },
    "supported_modes": {
      "description": "Supported calculation modes",
      "items": {
        "enum": [
          "lut",
          "linear",
          "fixed"
        ],
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "name",
    "standby_usage",
    "supported_modes",
    "measure_method",
    "measure_device"
  ],
  "type": "object"
}