Sha256: 6f276b412c53b53266f2c579f47b2c386b094d4ba6910659ce9e6e5a8b8234d7

Contents?: true

Size: 1.8 KB

Versions: 15

Compression:

Stored size: 1.8 KB

Contents

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "deviceName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "description": {
      "type": "string",
      "maxLength": 32767
    },
    "deviceDescription": {
      "type": "string",
      "maxLength": 32767
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "pattern": "^[0-9a-zA-Z_-]{1,255}$"
          },
          "value": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          }
        },
        "required": [
          "key",
          "value"
        ],
        "additionalProperties": false
      },
      "maxItems": 100
    },
    "attributes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "pattern": "^[0-9a-zA-Z_-]{1,255}$"
          },
          "dataType": {
            "type": "string",
            "enum": [
              "string",
              "number",
              "gps",
              "boolean"
            ]
          }
        },
        "required": [
          "name",
          "dataType"
        ],
        "additionalProperties": false
      },
      "maxItems": 256
    },
    "deviceClass": {
      "type": "string",
      "enum": [
        "standalone",
        "gateway",
        "peripheral",
        "floating",
        "edgeCompute"
      ]
    },
    "gatewayId": {
      "type": "string",
      "pattern": "^[A-Fa-f\\d]{24}$"
    }
  },
  "additionalProperties": false,
  "required": [
    "name"
  ]
}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
losant_rest-1.8.9 schemas/deviceRecipePost.json
losant_rest-1.8.7 schemas/deviceRecipePost.json
losant_rest-1.8.6 schemas/deviceRecipePost.json
losant_rest-1.8.5 schemas/deviceRecipePost.json
losant_rest-1.8.4 schemas/deviceRecipePost.json
losant_rest-1.8.3 schemas/deviceRecipePost.json
losant_rest-1.8.2 schemas/deviceRecipePost.json
losant_rest-1.8.1 schemas/deviceRecipePost.json
losant_rest-1.8.0 schemas/deviceRecipePost.json
losant_rest-1.7.2 schemas/deviceRecipePost.json
losant_rest-1.7.1 schemas/deviceRecipePost.json
losant_rest-1.7.0 schemas/deviceRecipePost.json
losant_rest-1.6.0 schemas/deviceRecipePost.json
losant_rest-1.5.2 schemas/deviceRecipePost.json
losant_rest-1.5.1 schemas/deviceRecipePost.json