{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://nao1215.github.io/jsonize/schemas/sensors/no-adapter.json",
  "title": "sensors/no-adapter",
  "description": "sensors -A readings grouped by chip, without the adapter line",
  "x-jsonize": {
    "definition": "sensors/no-adapter",
    "version": 1
  },
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "chip": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "bus": {
            "type": [
              "string",
              "null"
            ]
          },
          "address": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "bus",
          "address"
        ]
      },
      "readings": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "value": {
              "type": [
                "number",
                "null"
              ]
            },
            "unit": {
              "type": [
                "string",
                "null"
              ]
            },
            "limits": {
              "type": [
                "array",
                "null"
              ],
              "items": {
                "type": "string"
              }
            },
            "alarm": {
              "type": "boolean"
            }
          },
          "required": [
            "name",
            "value",
            "unit",
            "limits",
            "alarm"
          ]
        }
      }
    },
    "required": [
      "chip",
      "readings"
    ]
  }
}
